Category Geometry items, Object ProSurface

Function ProSldsurfaceShellsAndVoidsFind


Description
For each shell and void of this solid, returns surface-contour pairs which describe them.

NOTE: When the surface is split into a few pieces (has more than one external contour) these pieces may belong to different shells. Hence, each shell face has to be described by a pair (surface id, ProContour) - see ProSldsurfaceShellface.

Replacement in Object TOOLKIT: wfcWSolid::FindShellsAndVoids
Synopsis
#include <ProSurface.h>
ProErrorProSldsurfaceShellsAndVoidsFind(
ProSolid solid
/* (In)
The solid handle. Cannot be NULL.
*/
ProSldsurfaceShellorder** shell_order
/* (Out)
ProArray of ProSldsurfaceShellorder structures. The function allocates the memory for this argument. Cannot be NULL. Free this output using ProArrayFree().
*/
ProSldsurfaceShellface** shell_faces
/* (Out)
ProArray of ProSldsurfaceShellface structures. For each shell or void, their faces take a contingent segment in this array. The function allocates the memory for this argument. Cannot be NULL. Free this output using ProArrayFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully performed the task.
PRO_TK_BAD_INPUTSNULL was passed for some arguments.
PRO_TK_E_NOT_FOUNDThe solid has no geometry.
PRO_TK_NOT_VALIDthe topology of solid is not valid.

Manual References:

  1. Core: Solids, Parts, and Materials: Contents of a Solid
  2. Core: Solids, Parts, and Materials: Contents of a Solid