Click or drag to resize
AB4D logo

TriangulatorAddHole Method

AddHole method can be used when Triangulator was created with a single polygon. It adds the specified PointCollection as a hole in the original polygon. The orientation of positions (clockwise or anti-clockwise) in the hole must be different than the orientation of positions in the outer polygon. If the orientations are the same, then this methods reverses the order of positions in the hole (in this case false is returned). To get triangulated positions and triangle indices call Triangulate(PointCollection, ListInt32) method.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public bool AddHole(
	PointCollection points
)

Parameters

points  PointCollection
list of points that define the hole

Return Value

Boolean
true when the order of points is correct; false when the order of points was not correct for the hole and was reversed
See Also