Triangulates the VertexList of an existing vdPolyface using Delaunay algorithm and change the FaceList of the object according to calculated triangles.
Syntax
Parameters
Return Value
True if the triangulation succesully done.
Example
Create a polyface by triangulating an array of points.
C# | Copy Code |
---|
var points = [ [0, 0, 0], [4, 0, 0], [4, 4, 0], [0, 4, 0], [1, 1, 1], [3, 1, 1], [3, 3, 1], [1, 3, 1], [2, 2, 2] ]; var pface = vdcanvas.AddPolyface(points, []); var res = vdcanvas.TriangulatePolyface(pface,8); if(res) vdcanvas.redraw(); |
See Also