Category Creating import and custom geometry, Object ProForeign

Callback ProForeignCurveEvalFunction


Description
Defines the format for a user-supplied function that serves as a curve evaluator.
Synopsis
#include <ProForeignCurve.h>
ProError(*ProForeignCurveEvalFunction)(
ProName crv_class
/* (In)
The class
*/
wchar_t* data_val
/* (In)
The data passed from an element in the tree
*/
ProSelection csys
/* (In)
The coordinate system
*/
double curve_param
/* (In)
The normalized curve parameter
*/
ProVector xyz_point
/* (Out)
The resulting XYZ point
*/
ProVector deriv1
/* (Out)
The first derivative
*/
ProVector deriv2
/* (Out)
The second derivative
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully evaluated the curve.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Manual References:

  1. Event-driven Programming: Foreign Datum Curves: Providing an Evaluation Function