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.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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.
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.Triangulator.#ctor(System.Numerics.Vector2[],System.Int32[],System.Boolean)"]

See Also