Synopsis

PDX_MSGT gdx_NurbCurveImproveParams(long option, MDA_PTR gdx_nc_ptr, int *mod_flag)

Purpose

Improve parameter uniformness of certain Nurb curves.

Description

This function attempts to improve the uniformness of the parameterization of a Nurb curve which has internal knots of multiplicity equal to or greater than degree. That is, it looks at curve segments between knots of multiplicity equal to or greater than degree, and it changes (scales/translates) the knot values to better reflect the model space length of the curve segments. This is a precise reparameterization; no approximation is done. Hence, the geometry does not change, but the curve derivatives and parameterization do change. This function is particularly useful to apply to Nurb curves which were originally created as a composite of polynomial segments in a non-Nurbs system, and then converted to Nurbs.

Input

option

Not used.

gdx_nc_ptr

The Nurb curve.

Output

mod_flag

Flag indicating whether or not curve knots and bounds were modified: = 0 : Nothing modified. = 1 : knots and possibly bounds modified.

Tolerances

KNOT_TOL

Return

      GDX_NOERR
      Low level error return
      .fi