Functions | |
HC_BOOLEAN | Compute_Point_Inside_Shell (const HC_POINT *test_point, int point_count, const HC_POINT *points, int face_list_length, const int *face_list) |
HC_BOOLEAN Compute_Point_Inside_Shell | ( | const HC_POINT * | test_point, |
int | point_count, | ||
const HC_POINT * | points, | ||
int | face_list_length, | ||
const int * | face_list | ||
) |
Tests whether a given point is inside a shell, which is assumed to be a closed surface.
test_point | - point to test. passed by reference. |
point_count | - number of points in the shell that may enclose point |
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). Passed by reference always. |
face_list_length | - size of the array of integers that defines the faces in face_list |
face_list | - Encoded description of how to connect the points to build the faces of the shell (see Insert_Shell() ). |
HC_Compute_Point_Inside_Shell returns true if test_point is inside the shell, and false otherwise.
This function assumes that the shell is a closed surface. If it is not closed, correct results are not guaranteed.