瀏覽代碼

docs: added tetrahedron

astanusic 2 年之前
父節點
當前提交
13b233b6bb
共有 3 個文件被更改,包括 19 次插入0 次删除
  1. 1 0
      docs/.vitepress/config.ts
  2. 18 0
      docs/cientos/shapes/tetrahedron.md
  3. 二進制
      docs/public/cientos/tetrahedron.png

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

@@ -93,6 +93,7 @@ export default defineConfig({
               { text: 'Plane', link: '/cientos/shapes/plane' },
               { text: 'Ring', link: '/cientos/shapes/ring' },
               { text: 'Sphere', link: '/cientos/shapes/sphere' },
+              { text: 'Tetrahedron', link: '/cientos/shapes/tetrahedron' },
               { text: 'Torus', link: '/cientos/shapes/torus' },
               { text: 'TorusKnot', link: '/cientos/shapes/torus-knot' },
               { 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>
+```
+
+

二進制
docs/public/cientos/tetrahedron.png