Click or drag to resize
Ab4d.SharpEngine logo

Triangulator(IListVector2, 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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public Triangulator(
	IList<Vector2[]> polygons,
	bool isYAxisUp = 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.
Remarks

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

See Also