 |
PK_BCURVE_spline_t |
|
typedef int PK_BCURVE_spline_t;
Used in:
PK_BCURVE_create_spline
PK_BCURVE_spline_r_t
This datatype is used to return the status of a B-curve splining operation.
It has the values:
PK_BCURVE_spline_ok_c Successfully created the spline.
PK_BCURVE_spline_failure_c Failed to create the spline.
PK_BCURVE_spline_degree_c The degree is negative or too low for
the derivative conditions imposed.
PK_BCURVE_spline_bad_derivs_c An invalid derivative has been supplied.
The indices of the bad derivatives in
the 'derivs' array are returned in
'fault_values'.
PK_BCURVE_spline_many_derivs_c Too many derivatives of a given order.
The order of the overabundant derivatives
is returned in 'fault_values'.
PK_BCURVE_spline_bad_params_c A parameter value in 'parameters' lies
outside the 'param_interval' or the
'parameters' are not monotonically
increasing with respect to the order
of the corresponding positions. For
periodic curves, this error is also given
if the start and end of the
'param_interval' are both supplied as
parameters. The index of the incorrect
value in 'parameters' is returned in
'fault_values'.
PK_BCURVE_spline_bad_knots_c The knot values are inconsistent with
the parameter range in 'param_interval'
or are not monotonically increasing.
PK_BCURVE_spline_high_mult_c The knot multiplicity is too high for
the given 'degree'. The index of the
incorrect knot in 'knots' is returned
in 'fault_values'.
PK_BCURVE_spline_overdefined_c The position, parameter and derivative
conditions (locally) overdefine a spline
of the given knotset.