Bläddra i källkod

docs: added dodecahedron

astanusic 2 år sedan
förälder
incheckning
d985e69326

+ 1 - 0
docs/.vitepress/config.ts

@@ -90,6 +90,7 @@ export default defineConfig({
               { text: 'Box', link: '/cientos/shapes/box' },
               { text: 'Circle', link: '/cientos/shapes/circle' },
               { text: 'Cone', link: '/cientos/shapes/cone' },
+              { text: 'Dodecahedron', link: '/cientos/shapes/dodecahedron' },
               { text: 'Icosahedron', link: '/cientos/shapes/icosahedron' },
               { text: 'Octahedron', link: '/cientos/shapes/octahedron' },
               { text: 'Plane', link: '/cientos/shapes/plane' },

+ 17 - 0
docs/cientos/shapes/dodecahedron.md

@@ -0,0 +1,17 @@
+# Dodecahedron
+
+![](/cientos/dodecahedron.png)
+
+The `cientos` package provides a `<Dodecahedron />` component that serves as a short-cut for a `DodecahedronGeometry` and a `MeshBasicMaterial` with a `Mesh` object.
+
+## Usage
+
+```html
+<Dodecahedron :args="[1, 0]" color="deeppink" />
+
+// Dodecahedron with a custom material transformations
+<Dodecahedron ref="dodecahedronRef" :args="[1, 0]" :position="[2, 4, 0]">
+  <TresMeshToonMaterial color="deeppink" />
+</Dodecahedron>
+```
+

BIN
docs/public/cientos/dodecahedron.png