Synopsis

PDX_MSGT gdx_RemoveOneKnotCurve(long option, T_GDX_NURB_CURVE *cur, double u, int num, double toler, int *n)

Purpose

Removal of one knot from curve, multiple times.

Description

Knot removal from curve. Checks if u is an interior knot of the curve cur, and if it is, tries to remove it num times.

Input

option

Not used.

cur

The Nurbs curve. The pointer does not change, but the original curve is destroyed. New control points and knots are allocated.

u

The knot value to be removed.

num

Number of times to try to remove u.

toler

Knot removal tolerance. If the knot is removed, the resulting curve should not deviate from the original curve by more than toler.

Output

n

The number of times u was removed.

Tolerances

      ZERO_TOL
      .fi

Return

      GDX_NOERR
      Low level error return
      .fi