Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

Compute_Face_Neighborhood

Functions

void Compute_Face_Neighborhood (HC_KEY shell_key, int face_index, int *count, int *neighbors)
 Returns the indices of the faces within a shell that share an edge with the specified face. More...
 
void Compute_Face_Neighborhood_Size (HC_KEY shell_key, int face_index, int *count)
 Returns the number of faces within a shell that share an edge with the specified face. More...
 

Detailed Description

Function Documentation

void Compute_Face_Neighborhood ( HC_KEY  shell_key,
int  face_index,
int *  count,
int *  neighbors 
)

Returns the indices of the faces within a shell that share an edge with the specified face.

Parameters
shell_key- Key to the shell in which the faces reside.
face_index- The index of the face within the shell's facelist for which to calculate the neighbors.
count- Number of faces that share an edge with the supplied face. Passed by reference. Returned to caller.
neighbors- Array of indices into the shell's facelist, specifying the faces that share an edge with the supplied face. Passed by reference. Returned to caller.

DETAILS

Developers can use this API to determine the facets within a shell that are connected. This can often be used to help determine the features within a particular shell.

RESTRICTIONS

The API will not return faces that share an edge with more than one other face. Also, this API is only supported for shell geometry.

See also
Show_Shell, Generate_Shell_From_Geometry
void Compute_Face_Neighborhood_Size ( HC_KEY  shell_key,
int  face_index,
int *  count 
)

Returns the number of faces within a shell that share an edge with the specified face.

Parameters
shell_key- Key to the shell in which the faces reside.
face_index- The index of the face within the shell's facelist for which to calculate the neighbors.
count- Number of faces that share an edge with the supplied face. Passed by reference. Returned to caller.

DETAILS

Returns the size of the data structure that is needed as input to Compute_Face_Neighborhood().

See also
Show_Shell, Generate_Shell_From_Geometry