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.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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