 |
Triangulator(IListVector2, Boolean, Boolean) Constructor |
Constructor with multiple polygons (polygons are automatically classified as holes and outer polygons).
The holes are identified by the orientation of positions (clockwise or anti-clockwise) that is different from the orientation of positions in the outer polygons.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic Triangulator(
IList<Vector2[]> polygons,
bool isYAxisUp = true,
bool optimizePositions = true
)
Parameters
- polygons IListVector2
- array of polygon; each defined by a list of positions
- isYAxisUp Boolean (Optional)
- Optional Boolean that specifies if Y axis is pointing up (true by default). This affects the value of IsClockwise property.
- optimizePositions Boolean (Optional)
- When true (by default) then polygon positions are optimized by removing duplicate vertices (that follow one another) and removing vertices that lie on the same line. This may take some time to perform so if you know that your positions are already well defined, you can set that to false.
See Also