Compute_Point_Inside_Shell
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) |
Tests whether a given point is inside a shell, which is assumed to be a closed surface. More... | |
HC_BOOLEAN | DCompute_Point_Inside_Shell (const HC_POINT *test_point, int point_count, const HC_POINT *points, int face_list_length, const int *face_list) |
Similar to Compute_Point_Inside_Shell, but operates on double-precision data. More... | |
Detailed Description
Function Documentation
◆ Compute_Point_Inside_Shell()
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.
- Parameters
-
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() ).
- Returns
- success
DETAILS
HC_Compute_Point_Inside_Shell returns true if test_point is inside the shell, and false otherwise.
NOTES
This function assumes that the shell is a closed surface. If it is not closed, correct results are not guaranteed.
RESTRICTIONS
- See also
- Insert_Shell, Show_Shell, Compute_Selection_By_Shell
◆ DCompute_Point_Inside_Shell()
HC_BOOLEAN DCompute_Point_Inside_Shell | ( | const HC_POINT * | test_point, |
int | point_count, | ||
const HC_POINT * | points, | ||
int | face_list_length, | ||
const int * | face_list | ||
) |
Similar to Compute_Point_Inside_Shell, but operates on double-precision data.
- Parameters
-
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() ).
- Returns
- success