Eyeshot 10 WinForms API Reference
Triangulate(IList<Point2D>,IList<IList<Point2D>>,Boolean,Point2D[],IndexTriangle[]) Method

WinForms Assembly > devDept.Geometry Namespace > UtilityEx Class > Triangulate Method : Triangulate(IList<Point2D>,IList<IList<Point2D>>,Boolean,Point2D[],IndexTriangle[]) Method
Outer contour
A list of inner contours, can be null/Nothing.
When true, the contour orientation is fixed automatically.
The resulting triangulation 2D vertices
The resulting triangulation triangles
Triangulates a set of contours.
Syntax
'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.
See Also

Reference

UtilityEx Class
UtilityEx Members
Overload List