|
Triangulator(Vector2, Int32, Boolean) Constructor |
Constructor that takes positions and triangle indices that define the outer polygon.
When Triangulator is created with triangle indices, then it is not possible to add holes.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public Triangulator(
Vector2[] points,
int[] polygonIndices,
bool isYAxisUp = true
)
Parameters
- points Vector2
- list of points that define the polygon that need to be triangulated.
- polygonIndices Int32
- list of indexes in the points list that define the polygon.
- isYAxisUp Boolean (Optional)
- Optional Boolean that specifies if Y axis is pointing up (true by default). This affects the value of IsClockwise property.
See Also