Kaynağa Gözat

docs: added tetrahedron

astanusic 2 yıl önce
ebeveyn
işleme
13b233b6bb

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

@@ -93,6 +93,7 @@ export default defineConfig({
               { text: 'Plane', link: '/cientos/shapes/plane' },
               { text: 'Plane', link: '/cientos/shapes/plane' },
               { text: 'Ring', link: '/cientos/shapes/ring' },
               { text: 'Ring', link: '/cientos/shapes/ring' },
               { text: 'Sphere', link: '/cientos/shapes/sphere' },
               { text: 'Sphere', link: '/cientos/shapes/sphere' },
+              { text: 'Tetrahedron', link: '/cientos/shapes/tetrahedron' },
               { text: 'Torus', link: '/cientos/shapes/torus' },
               { text: 'Torus', link: '/cientos/shapes/torus' },
               { text: 'TorusKnot', link: '/cientos/shapes/torus-knot' },
               { text: 'TorusKnot', link: '/cientos/shapes/torus-knot' },
               { text: 'Tube', link: '/cientos/shapes/tube' },
               { text: 'Tube', link: '/cientos/shapes/tube' },

+ 18 - 0
docs/cientos/shapes/tetrahedron.md

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

BIN
docs/public/cientos/tetrahedron.png