Public Member Functions | |
Triangulator (Vector3[] vertices) | |
Triangulator (Vector3[] vertices, int start, int vertexCount) | |
void | Select (int start, int vertexCount) |
void | FindWinding () |
Call this to find the winding order of the polygon. More... | |
float | GetArea () |
Gets the area of the polygon to triangulate. More... | |
void | AddTriangle (int a, int b, int c) |
int[] | Triangulate () |
void | Triangulate (int[] triangles, int triangleCount, int offset) |
Public Attributes | |
bool | Clockwise |
True if the verts go around clockwise. In most cases this depends on which direction the polygon was drawn in. More... | |
int[] | Triangles |
Vector3[] | Vertices |
int | VertexCount |
int | VertexOffset |
TriangulationVertex | Current |
Private Member Functions | |
float | GetSignedArea () |
Gets the area of the polygon to triangulate. Note: may be negative. More... | |
bool | InsideTriangleAnti (TriangulationVertex A, TriangulationVertex B, TriangulationVertex C, TriangulationVertex P) |
bool | InsideTriangle (TriangulationVertex A, TriangulationVertex B, TriangulationVertex C, TriangulationVertex P) |
Private Attributes | |
int | TriangleIndex |
|
inline |
|
inline |
|
inline |
|
inline |
Call this to find the winding order of the polygon.
|
inline |
Gets the area of the polygon to triangulate.
|
inlineprivate |
Gets the area of the polygon to triangulate. Note: may be negative.
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
bool Blaze.Triangulator.Clockwise |
True if the verts go around clockwise. In most cases this depends on which direction the polygon was drawn in.
TriangulationVertex Blaze.Triangulator.Current |
|
private |
int [] Blaze.Triangulator.Triangles |
int Blaze.Triangulator.VertexCount |
int Blaze.Triangulator.VertexOffset |
Vector3 [] Blaze.Triangulator.Vertices |