Category Geometry items, Object ProSurface

Function ProSldsurfaceVolumesFind


Description
Analyzes and returns the number of connect volumes of a part, and the surfaces that bound them.

Free the memory for the p_surface_id_array as follows:

for (i = 0; i < p_count; i++)
ProArrayFree(ProArray) p_surface_id_array[i]);
Replacement in Object TOOLKIT: wfcWPart::GetVolumeInfo
Synopsis
#include <ProSurface.h>
ProErrorProSldsurfaceVolumesFind(
ProPart part
/* (In)
The part handle.
*/
int* p_count
/* (Out)
The number of distinct volumes found.
*/
int** p_count_array
/* (Out)
The array that contains the number of surfaces in each identified volume. The function allocates the memory for this argument, but you must free it.
*/
int*** p_surface_id_array
/* (Out)
An array of arrays of surface identifiers that contains the connected volumes found. The function allocates the memory for this argument.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully performed the analysis.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_E_NOT_FOUNDThe specified volume was not found.
See Also
ProArrayFree

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: 3D Geometry: Geometry of Surfaces
  3. Core: 3D Geometry: Geometry of Surfaces

Sample Code References:

  1. pt_examples ( TestGeom.c )