Synopsis

PDX_MSGT gdx_RemoveKnotsCurve(long option, T_GDX_NURB_CURVE *gdx_nc, double kr_tol, int *n)

Purpose

Remove as many knots as possible from Nurbs curve.

Description

This routine removes as many occurrences of all interior knots as the continuity of the curve will allow. The pointer gdx_nc does not change, but the original curve is destroyed (new control points and knots are allocated).

Input

option

Options (not used).

gdx_nc

Pointer to the GDX NURB Curve from which the knots are to be removed.

kr_tol

Knot removal tolerance. The resulting curve will not deviate more than kr_tol from the original surface.

Output

gdx_nc

Pointer not changed, but contents of structure pointed to by gdx_nc are changed.

n

Number of knots removed.

Return

      GDX_NOERR
      Low level error code
      .fi