Polygon mesh vertices
Polygon mesh indices
Contains some options values scaled by the constant factor
Polygon mesh geometry
Contain the polygon tree node object, containing the main forms and its holes and sub-polygons
Contains the the number of offset passes required to compute the polygon
Default options values
Execute the triangulation to create indices
A geometry to update
The resulting geometry
Create the polygon mesh
Update vertices and add depth
Create the polygon by generating the edges and the interior of the polygon if an offset != 0, and just activate a fast triangulation if offset = 0
Recursively create offset polygons in successive passes
ClipperLib offsetter
A polygon node object to offset
Flatten a ClipperLib path to array of numbers
path to convert
depth to add to the flattened vertices
flattened array of points
Normalize polygon coordinates and put result into nPoly property.
the poly to normalize
the normalized poly array
Fast triangulation of the polygon node tree
Recursive triangulation of the polygon node tree
Triangulate a node and its children recursively to compose a mesh with multiple levels of depth
The polygon node tree to triangulate
An array of indices, result of the triangulation
Updating or creating the PIXI.Geometry that will be used by the mesh
Empty the geometry, or if geometry is null, create an empty geometry.
Create a new Geometry from provided buffers
provided vertices array (interleaved or not)
the new PIXI.Geometry constructed from the provided buffers
Convert a flat points array into a 2 dimensional ClipperLib path
PIXI.Polygon or points flat array.
The clipper lib path.
A helper class used to construct triangulated polygon meshes Allow to add padding and a specific depth value.
Closed polygon to be processed and converted to a mesh (array of points or PIXI Polygon)
Various options : normalizing, offsetting, add depth, ...