瀏覽代碼

docs: added icosahedron

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

+ 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: 'Icosahedron', link: '/cientos/shapes/icosahedron' },
               { text: 'Plane', link: '/cientos/shapes/plane' },
               { text: 'Ring', link: '/cientos/shapes/ring' },
               { text: 'Sphere', link: '/cientos/shapes/sphere' },

+ 16 - 0
docs/cientos/shapes/icosahedron.md

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

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