|
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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public 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
See Also