#include <Triangulate.h>
Static Public Member Functions | |
static bool | Process (const FLine2 &contour, FLine2 &result) |
static bool | Process (const FLine3 &contour, FLine3 &result) |
static bool | Process (const FLine3 &contour, vtArray< int > &result) |
static float | Area (const FLine2 &contour) |
static float | Area (const FLine3 &contour) |
static bool | InsideTriangle (float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Px, float Py) |
Static class to triangulate any contour/polygon efficiently. Does not support polygons with holes. Also provides two useful helper methods, one which computes the area of a polygon, and another which does an efficent point in a triangle test.
|
static |
compute area of a contour/polygon
|
static |
decide if point Px/Py is inside triangle defined by (Ax,Ay) (Bx,By) (Cx,Cy)
triangulate a contour/polygon, places results in STL vector as series of triangles.