'Declaration Public Overloads Shared Function Triangulate( _ ByVal outerLoop As IList(Of Point2D), _ ByVal innerLoops As IList(Of IList(Of Point2D)), _ ByVal checkDir As Boolean, _ ByRef vertices As Point2D(), _ ByRef triangles As IndexTriangle() _ ) As Boolean
public static bool Triangulate( IList<Point2D> outerLoop, IList<IList<Point2D>> innerLoops, bool checkDir, out Point2D[] vertices, out IndexTriangle[] triangles )
Parameters
- outerLoop
- Outer contour
- innerLoops
- A list of inner contours, can be null/Nothing.
- checkDir
- When true, the contour orientation is fixed automatically.
- vertices
- The resulting triangulation 2D vertices
- triangles
- The resulting triangulation triangles
Return Value
True if the operation succeeds, false otherwise.