Brief Index      Full Index      Events Index      I.M. Reference

Compute_Point_On_Shell


Functions

HC_BOOLEAN Compute_Point_On_Shell (const HC_POINT *test_point, double tolerance, int point_count, const HC_POINT *points, int face_list_length, const int *face_list)
HC_BOOLEAN DCompute_Point_On_Shell (const HC_DPOINT *test_point, double tolerance, int point_count, const HC_DPOINT *points, int face_list_length, const int *face_list)

Function Documentation

HC_BOOLEAN Compute_Point_On_Shell ( const HC_POINT *  test_point,
double  tolerance,
int  point_count,
const HC_POINT *  points,
int  face_list_length,
const int *  face_list 
)

Tests whether a given point is on the surface of a shell.

Parameters:
test_point - point to test. Passed by reference.
tolerance - Distance from shell, in object space, inside which a point will be considered to be on the shell.
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:
flag

DETAILS

Compute_Point_On_Shell returns true if test_point is on the surface of the shell, and false otherwise.

NOTES

Models that use non-planar faces may also cause this function to generate incorrect results.

RESTRICTIONS

See also:
Insert_Shell, Show_Shell, Compute_Selection_By_Shell

HC_BOOLEAN DCompute_Point_On_Shell ( const HC_DPOINT *  test_point,
double  tolerance,
int  point_count,
const HC_DPOINT *  points,
int  face_list_length,
const int *  face_list 
)

Similar to Compute_Point_On_Shell, but operates on double-precision data.

Parameters:
test_point - point to test. Passed by reference.
tolerance - Distance from shell, in object space, inside which a point will be considered to be on the shell.
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:
flag

Brief Index      Full Index      Events Index      I.M. Reference