Optionalsize: numberOptionaltype: numberOptionalsizeX: numberOptionalsizeY: numberOptionalsizeZ: numberOptionalcustom: number[]Optionalflat: booleanOptionalsideOrientation: sideOrientationEnumOptionalenableShadows: booleanOptionalsizeSize on every axis, in scene units, unless a per-axis size overrides it
OptionaltypeWhich built-in shape, 0 to 14: 0 tetrahedron, 1 octahedron, 2 dodecahedron, 3 icosahedron, 4 rhombicuboctahedron, then prisms, pyramids, dipyramids and a cupola
OptionalsizeSize along X, in scene units; 0 falls back to size
OptionalsizeSize along Y, in scene units; 0 falls back to size
OptionalsizeSize 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
OptionalflatWhen true, each face is shaded flat, showing facets instead of a smooth surface
OptionalsideWhich side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
OptionalenableWhen 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.