Synopsis
PDX_MSGT gdx_NurbCurveThruNPoints(long option, int model, MTH_3DPNT pts[], long n, int order, double par[], double kts[], int pl_flag, double toler, T_GDX_NURB_CURVE **curve)
Purpose
Create Nurb curve passing through n points.
Description
Creates a NURBS curve interpolating n points. The user can choose the b-spline order of the curve. Knot vector and parameter values at the data points can either be passed in, or this routine can compute them.
Input
option
GDX_PARSKNOTS
If set, parameter values and knots are passed into this routine. If not, this routine will compute them.
model
The GDX model for entity creation.
pts
The points to be interpolated.
n
The number of points in (pts).
order
The b-spline order of the interpolating curve.
par
Parameter values at the data points (only if GDX_PARSKNOTS is set).
kts
The knot vector to be used (only if GDX_PARSKNOTS is set).
pl_flag
Planarity flag : = 0 : The points are in the xy-plane. = 1 : Do not check planarity (assume 3D twisted curve). = 2 : Check for planarity (xy- and otherwise).
toler
The distance between points tolerances.
Output
curve
The curve passing through the points.
Return
GDX_NOERR
GDX_BADDATA
GDX_SINGULAREQS
Low level error return
.fi