Builtin Library
- ..
- .metadata38 B
- README.md806 B
- init.luau945 B
- polyhedron.module
README.md
shape.polyhedron
A regular polyhedron inscribed in a sphere. With detail 0 its faces are flat; above 0 each face is split and the surface rounds toward the sphere.
In a scene: TetrahedronGeometry, OctahedronGeometry, IcosahedronGeometry and DodecahedronGeometry (radius, detail).
| Input | Default | Meaning |
|---|---|---|
kind | icosahedron | Which solid: tetrahedron, octahedron, icosahedron or dodecahedron. |
radius | 1 | The radius of the sphere it is inscribed in. |
detail | 0 | How many extra points each edge gets. |
The node answers geometry: a mesh with positions, normals and uvs. Its body is a call into the module in its own folder, so a graph of many parts cooks without a device dispatch per shape.
IcosahedronGeometry(0.6, 1):smooth()