Category Geometry items, Object ProCurve

Function ProCurveCompVisit


Description
Visits the components of the specified composite curve.
Replacement in Object TOOLKIT: pfcCompositeCurve::ListElements
Synopsis
#include <ProCurve.h>
ProErrorProCurveCompVisit(
ProCurve p_curve
/* (In)
The curve handle.
*/
ProCurveCompAction action
/* (In)
The action function to be called for each component. If the function returns anything other than PRO_TK_NO_ERROR, visiting stops. This can be NULL, which will cause only the filter function to be called for each curve.
*/
ProCurveCompFilter filter
/* (In)
The filter function. If NULL, all components 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 the components.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_NOT_IMPLEMENTEDThe p_curve is a valid geometry item, but not a composite curve.
PRO_TK_E_NOT_FOUNDNo components 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. Core: 3D Geometry: Visiting Solid Geometry
  2. Core: 3D Geometry: Geometry of Composite Curves

Sample Code References:

  1. pt_examples ( UtilCollect.c )