 |
TriangulatorAddHole Method |
AddHole method can be used when Triangulator was created with a single polygon.
It adds the specified array of positions as a hole in the original polygon.
The orientation of positions (clockwise or anti-clockwise) in the hole must be different from the orientation of positions in the outer polygon.
If the orientations are the same, then this method reverses the order of positions in the hole (in this case false is returned).
To get triangulated positions and triangle indices call
Triangulate(ListVector2, ListInt32) method.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic bool AddHole(
Vector2[] points
)
Parameters
- points Vector2
- list of points that define the hole
Return Value
Booleantrue when the order of points is correct; false when the order of points was not correct for the hole and was reversed
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.Triangulator.AddHole(System.Numerics.Vector2[])"]
See Also