Functions | |
void | Compute_Triangulation (const HC_POINT *points, int flist_length, const int *face_list, int *tlist_length, int *triangle_list) |
void | Compute_Triangulation_Size (const HC_POINT *points, int flist_length, const int *face_list, int *tlist_length) |
void Compute_Triangulation | ( | const HC_POINT * | points, |
int | flist_length, | ||
const int * | face_list, | ||
int * | tlist_length, | ||
int * | triangle_list | ||
) |
Provides a triangle based tesselation of a HOOPS Shell which can contain facets which have more than 3 edges.
points | - Vector of x-y-z triplets for the coordinates of the vertices to be triangulated. (A simple N x 3 array may also be used.) Passed by reference always. |
flist_length | - Total number of integers in face_list. |
face_list | - Zero-based, encoded description of how to connect the points to build the faces of a shell (see below). |
tlist_length | - Total number of integers in triangle_list. This will be zero if the faces are invalid. Passed by reference. Returned to user. |
triangle_list | - Zero-based, encoded description of how to connect the points to build the faces of a shell (see below). Passed by reference always. Returned to user. |
The face_list consists of n-tuples where the first number specifies the number of verticies in the tuple, followed by indicies into the points array.
The triangle_list is similar to face_list, except that all of the tuples will begin with three (3).
void Compute_Triangulation_Size | ( | const HC_POINT * | points, |
int | flist_length, | ||
const int * | face_list, | ||
int * | tlist_length | ||
) |
Similar to Compute_Triangulation(), but returns triangle list size for use in allocating space for triangle_list.
points | - Vector of x-y-z triplets for the coordinates of the vertices to be triangulated. (A simple N x 3 array may also be used.) Passed by reference always. |
flist_length | - Total number of integers in face_list. |
face_list | - Zero-based, encoded description of how to connect the points to build the faces of a shell (see below). |
tlist_length | - Total number of integers in triangle_list. This will be zero if the faces are invalid. Passed by reference. Returned to user. |
No additional details.