Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit098ece8e9e

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).

InputDefaultMeaning
kindicosahedronWhich solid: tetrahedron, octahedron, icosahedron or dodecahedron.
radius1The radius of the sphere it is inscribed in.
detail0How 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()