Contains options to apply during the meshing process
Polygon mesh vertices
Polygon mesh indices
Private
#scaledContains some options values scaled by the constant factor
Private
#geometryPolygon mesh geometry
Private
#polygonContain the polygon tree node object, containing the main forms and its holes and sub-polygons
Private
#nbContains the the number of offset passes required to compute the polygon
Static
_defaultDefault options values
Private
#computePrivate
#updatePrivate
#updatePrivate
#createPrivate
#flattenPrivate
#normalizePrivate
#triangulatePrivate
#triangulatePrivate
#triangulateTriangulate a node and its children recursively to compose a mesh with multiple levels of depth
The polygon node tree to triangulate
Optional
indices: number[] = []An optional array to receive indices (used for recursivity)
An array of indices, result of the triangulation
Private
#updatePrivate
#emptyPrivate
#createCreate a new Geometry from provided buffers
provided vertices array (interleaved or not)
Optional
depth: number[] = undefinedprovided depth array
Optional
indices: number[] = ...provided indices array
the new PIXI.Geometry constructed from the provided buffers
Static
get
A helper class used to construct triangulated polygon meshes Allow to add padding and a specific depth value.
Param: poly
Closed polygon to be processed and converted to a mesh (array of points or PIXI Polygon)
Param: options
Various options : normalizing, offsetting, add depth, ...