Synopsis
PDX_MSGT gdx_GetKnotInfo(long option, long num_knots, double *knot_vector, long *num_distinct_knots, double **distinct_knots, int **multiplicities)
Purpose
Analyzes knot vector and returns appropriate information.
Description
Determines distinct knots and their corresponding multiplicities for a given knot vector. Knots are considered to be equal if they differ by less than or equal to GDX KNOT_TOL.
This routine allocates memory for the distinct_knots and multiplicities arguments. This memory must be freed by the calling routine. If the calling routine is not part of libgdx, a call to gdx_Free() must be made to free these arguments.
Input
option
Options (not used)
num_knots
Number of knots in knot vector to be examined.
knot_vector
Knot vector to be examined
Output
num_distinct_knots
Number of distinct knots (and multiplicities)
distinct_knots
Distinct knots
multiplicities
The number of times each distinct knot is to be repeated to construct the knot vector.
Tolerances
GDX KNOT_TOL
.fi
Return
GDX_NOERR
Low level error return
.fi