Functions | |
void | Show_Shell_By_Tristrips (HC_KEY key, int *pcount, HC_POINT *points, int *tristrips_length, int *tristrips, int *face_indices_length, int *face_indices) |
void | Show_Shell_By_Tristrips_Size (HC_KEY key, int *pcount, int *tristrips_length, int *face_indices_length) |
void Show_Shell_By_Tristrips | ( | HC_KEY | key, | |
int * | pcount, | |||
HC_POINT * | points, | |||
int * | tristrips_length, | |||
int * | tristrips, | |||
int * | face_indices_length, | |||
int * | face_indices | |||
) |
Returns the previous definition of a shell, as referenced by a key.
key | - Unique numeric identifier pointing to a shell in the database. | |
pcount | - Number of valid points in points. Returned to caller. Passed by reference always. | |
points | - Vector of x-y-z triplets for the coordinates of the vertices to be used to build the shell. (A simple N x 3 array may also be used.) Returned to caller. Passed by reference always. | |
tristrips_length | - The length of the tristrips array. Returned to user. | |
tristrips | - An encoded description of the connectivity of points into triangle strips. Returned to user. | |
face_indices_length | - The length of the face_indices array. Returned to user | |
face_indices | - An encoded description of how triangles should be combined to form faces, and the assignment of face identifiers. Can be null. |
Use Show_Shell_By_Tristrip_Size() to retrieve the sizes of the point cloud and tristrip arrays before allocating space for those structures.
void Show_Shell_By_Tristrips_Size | ( | HC_KEY | key, | |
int * | pcount, | |||
int * | tristrips_length, | |||
int * | face_indices_length | |||
) |
Finds the size of a shell that has been inserted by tristrips. This is useful in determining the size of the data structures that must hold points, tristrips, and face_indices.
key | - Unique numeric identifier pointing to a shell in the database. | |
pcount | - Number of valid points in points. Returned to caller. Passed by reference always. | |
tristrips_length | - The length of the tristrips array. Returned to user. | |
face_indices_length | - The length of the face_indices array. Returned to user |