Optionalshape: Vector3[]Optionalholes: Vector3[][]Optionaldepth: numberOptionalsmoothingThreshold: numberOptionalsideOrientation: sideOrientationEnumOptionalwrap: booleanOptionalenableShadows: booleanThe outline points in order, only X and Z used; the outline must not cross itself
OptionalholesLists of points, one outline per hole cut out of the polygon
OptionaldepthThickness the polygon is given downward along Y, in scene units; 0 keeps it flat
OptionalsmoothingHow close two face normals must be for the edge between them to be shaded smooth
OptionalsideWhich side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
OptionalwrapWhen true, the sides of an extruded polygon get texture coordinates that wrap around it
OptionalenableWhen true, the mesh casts and receives shadows from the lights that have them enabled
Feeds
babylon.meshBuilder.createPolygon: the outline of a flat polygon in the XZ plane, its holes, an optional thickness and how it is shaded and wrapped.