Optionalsize: numberOptionaltype: numberOptionalsizeX: numberOptionalsizeY: numberOptionalsizeZ: numberOptionalcustom: number[]Optionalflat: booleanOptionalsideOrientation: sideOrientationEnumOptionalenableShadows: booleanSize on every axis, in scene units, unless a per-axis size overrides it
Which built-in shape, 0 to 14: 0 tetrahedron, 1 octahedron, 2 dodecahedron, 3 icosahedron, 4 rhombicuboctahedron, then prisms, pyramids, dipyramids and a cupola
Size along X, in scene units; 0 falls back to size
Size along Y, in scene units; 0 falls back to size
Size along Z, in scene units; 0 falls back to size
OptionalcustomYour own polyhedron as the data the engine expects, used instead of type when given
When true, each face is shaded flat, showing facets instead of a smooth surface
Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
When true, the mesh casts and receives shadows from the lights that have them enabled
Feeds
babylon.meshBuilder.createPolyhedron: which of the built-in polyhedra to build or custom data for your own, its size per axis and its shading.