# Synopsis

PDX_MSGT gdx_InsertKnotCurve(long option, T_GDX_NURB_CURVE *cur, double u, int num_ins, int *kmult)

# Purpose

Insert a knot into a curve multiple times.

# Description

Insert the knot u into the curve pointed to by cur num_ins times. The total multiplicity of u (current plus num_ins) will not exceed the degree of the curve (this routine checks for this case, and if applicable, adds u fewer than num_ins times). The pointer cur does not change, but the original curve is destroyed (new control points and knots are allocated).

# Input

## option

Options not used.

## cur

Pointer to the GDX NURB Curve to which the knot is to be added.

## u

Knot to be added (assumed to be in the parameter range given by the knot vector).

## num_ins

Number of times to add u.

# Output

## cur

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

## kmult

Multiplicity of the knot after insertion.

# Tolerances

          KNOT_TOL
          .fi

# Return

          GDX_NOERR
          GDX_NOMEMORY
          Low level MDA error.
          .fi