Category Geometry items, Object ProSurface

Function ProSurfaceContourVisit


Description
Visits all the contours of the specified surface.
Replacement in Object TOOLKIT: pfcSurface::ListContours
Synopsis
#include <ProSurface.h>
ProErrorProSurfaceContourVisit(
ProSurface p_surface
/* (In)
The surface handle.
*/
ProSurfaceContourVisitAction action
/* (In)
The action function called for each contour being visited. Visiting stops if this function returns anything other than PRO_TK_NO_ERROR.
*/
ProSurfaceContourFilterAction filter
/* (In)
The filter function called for each contour before the action is taken. If this function returns PRO_TK_CONTINUE, the action function skips that contour. Any other return value is passed to the action function. If NULL, all contours are visited using the action function.
*/
ProAppData app_data
/* (In)
The application data passed to the action and filter functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the contours.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_E_NOT_FOUNDNo contours were visited (either because of the filter or for another reason).
OtherAny other value is the value returned from the action function (visiting stopped).

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Geometry Traversal: To Walk Through the Geometry of a Block
  3. Core: Cross Sections: Extracting Cross-Sectional Geometry
  4. Core: 3D Geometry: Visiting Solid Geometry
  5. Core: 3D Geometry: Visiting Solid Geometry
  6. Core: 3D Geometry: Visiting Solid Geometry
  7. Core: 3D Geometry: Visiting Solid Geometry

Sample Code References:

  1. pt_af_examples ( PTAFExampleUtils.c )
  2. pt_examples ( UtilCollect.c )
  3. pt_userguide ( UgXsecList.c )