Category Geometry items, Object ProContour

Function ProContourEdgeVisit


Description
Visits all the edges of the specified contour.
Replacement in Object TOOLKIT: pfcContour::ListElements
Synopsis
#include <ProContour.h>
ProErrorProContourEdgeVisit(
ProSurface surface
/* (In)
The surface of the contour.
*/
ProContour p_contour
/* (In)
The contour handle.
*/
ProContourEdgeVisitAction action
/* (In)
The action function to be called for each edge. If it returns anything other than PRO_TK_NO_ERROR, visiting stops. Note that you must specify this argument.
*/
ProContourEdgeFilterAction filter
/* (In)
The filter function. If NULL, visits all edges 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 the edges.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_E_NOT_FOUNDNo edges were visited, either because of the filter or for another reason.
OtherAny other value is the value returned by 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: 3D Geometry: Visiting Solid Geometry
  4. Core: 3D Geometry: Visiting Solid Geometry
  5. Core: 3D Geometry: Visiting Solid Geometry

Sample Code References:

  1. pt_examples ( UtilCollect.c )