Browse Source

docs: added cone

astanusic 2 năm trước cách đây
mục cha
commit
bc185208a8

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

@@ -89,6 +89,7 @@ export default defineConfig({
             items: [
             items: [
               { text: 'Box', link: '/cientos/shapes/box' },
               { text: 'Box', link: '/cientos/shapes/box' },
               { text: 'Circle', link: '/cientos/shapes/circle' },
               { text: 'Circle', link: '/cientos/shapes/circle' },
+              { text: 'Cone', link: '/cientos/shapes/cone' },
               { text: 'Plane', link: '/cientos/shapes/plane' },
               { text: 'Plane', link: '/cientos/shapes/plane' },
               { text: 'Sphere', link: '/cientos/shapes/sphere' },
               { text: 'Sphere', link: '/cientos/shapes/sphere' },
               { text: 'Torus', link: '/cientos/shapes/torus' },
               { text: 'Torus', link: '/cientos/shapes/torus' },

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

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

BIN
docs/public/cientos/cone.png