OptionalextraAdditional transforms applied to the polygon. Optional property.
An array of filled points that define the polygon's outer shape.
OptionalholesAn array of holes in the polygon, each hole defined by an array of points. Optional property.
OptionalmaterialThe material for the polygon, which defines its appearance. Optional property.
The position of the polygon's center in 3D space, represented as an array of numbers [x, y, z].
OptionalrotationThe rotation of the polygon, represented as a Vector3.
Optional property, default is [0, 0, 0].
OptionalrotationalThe rotational center for the polygon. Optional property.
OptionalscaleThe scale of the polygon in 3D space, represented as a Vector3.
Optional property, default is [1, 1, 1].
Options for initializing a
WebaniPolygonobject.