You are reading Tres v1 docs. Head over tresjs.org for V2 docs.
Skip to content
On this page

Icosahedron ^1.6.0

The cientos package provides a <Icosahedron /> component that serves as a short-cut for a IcosahedronGeometry and a MeshBasicMaterial with a Mesh object.

typescript
args: [radius: number, detail: number]

Reference: IcosahedronGeometry

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>