API 文件集 > Geometry items > Object ProSurface > Function ProSldsurfaceVolumesFind
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:
Synopsis
#include <ProSurface.h>
ProSldsurfaceVolumesFind
(
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
The function successfully performed the analysis.
The input argument is invalid.
The specified volume was not found.
See Also
Sample Code References
這是否有幫助?