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
Thickness the polygon is given downward along Y, in scene units; 0 keeps it flat
How close two face normals must be for the edge between them to be shaded smooth
Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind
When true, the sides of an extruded polygon get texture coordinates that wrap around it
When 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.