Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
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