Category Solids and parts, Object ProSolid

Function ProSolidSurfaceVisit


Description
Visits all the surfaces in the specified solid.
Synopsis
#include <ProSolid.h>
ProErrorProSolidSurfaceVisit(
ProSolid p_handle
/* (In)
The solid handle.
*/
ProSurfaceVisitAction visit_action
/* (In)
The visiting function. If it returns anything other than PRO_TK_NO_ERROR, visiting stops.
*/
ProSurfaceFilterAction filter_action
/* (In)
The filter function. If NULL, all surfaces are are visited using the action function.
*/
ProAppData app_data
/* (In)
The application data passed to the filter and visiting functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the surfaces.
PRO_TK_E_NOT_FOUNDEither no surfaces exist, or they were all filtered out by the filter function.
OtherAny other value is the value returned by the action function (visiting stopped).

Manual References:

  1. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Techniques of Conversion and Mixing
  2. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  3. Core: Solids, Parts, and Materials: Contents of a Solid
  4. Core: Solids, Parts, and Materials: Contents of a Solid
  5. Geometry Traversal: To Walk Through the Geometry of a Block
  6. Assembly: Basic Assembly Access: Structure of Assemblies and Assembly Objects
  7. Core: 3D Geometry: Visiting Solid Geometry
  8. Core: 3D Geometry: Visiting Solid Geometry

Sample Code References:

  1. pt_autoaxis ( AutoAxis.c )
  2. pt_examples ( UtilCollect.c )
  3. pt_examples ( UtilCollect.c )
  4. pt_userguide ( UgGtolCreate.c )