The CPU code behind the shape.polyhedron node: it takes the node's inputs and returns the mesh as a procgen Geometry (proc.substrate.fromArrays). The node's README lists the inputs.
shape.polyhedron
proc.substrate.fromArrays