#include <Triangulator.h>
Public Member Functions | |
int | apply (const std::vector< int > &polygon) |
void | setVertices (const MFVec3f &vertices) |
const std::vector< int > & | triangles () |
Private Types | |
enum | Convexity { FLAT, CONVEX, CONCAVE } |
Private Member Functions | |
Convexity | calcConvexity (int ear) |
bool | checkIfEarContainsOtherVertices (int ear) |
Vector3Ref | vertex (int localIndex) |
Vector3Ref | workVertex (int workPolygonIndex) |
Private Attributes | |
Vector3 | ccs |
boost::dynamic_bitset | earMask |
const std::vector< int > * | orgPolygon |
std::vector< int > | triangles_ |
const MFVec3f * | vertices |
std::vector< int > | workPolygon |
Definition at line 24 of file Triangulator.h.
|
private |
Enumerator | |
---|---|
FLAT | |
CONVEX | |
CONCAVE |
Definition at line 48 of file Triangulator.h.
Definition at line 20 of file Triangulator.cpp.
|
private |
Definition at line 89 of file Triangulator.cpp.
|
private |
Definition at line 110 of file Triangulator.cpp.
Definition at line 28 of file Triangulator.h.
Triangulated indices. This value is available after calling the 'apply' method. The indices are local ones in the polygon index vector given to the apply method.
Definition at line 42 of file Triangulator.h.
|
inlineprivate |
Definition at line 57 of file Triangulator.h.
|
inlineprivate |
Definition at line 61 of file Triangulator.h.
|
private |
Definition at line 54 of file Triangulator.h.
|
private |
Definition at line 55 of file Triangulator.h.
Definition at line 51 of file Triangulator.h.
|
private |
Definition at line 52 of file Triangulator.h.
Definition at line 50 of file Triangulator.h.
|
private |
Definition at line 53 of file Triangulator.h.