Synopsis

PDX_MSGT gdx_MakeNurbSurfG1Cont(long option, T_GDX_NURB_SURF *sur, double sintol)

Purpose

Make a Nurbs surface G1-continuous.

Description

This routine forces a Nurbs surface to be G1-continuous to within a specified sine tolerance. It checks for continuity only at internal knot lines. If tangent directions from the left and right (in u or v) differ by more than the specified tolerance, the knot is removed one time.

Input

option

Not used.

sur

The surface to be checked.

sintol

The sine tolerance.

Output

sur

The surface pointer does not change, but the contents of its knot and control point arrays may change.

Tolerances

      MODEL_SPACE_PNT_TOL
      ZERO_TOL
      .fi

Return

      GDX_NOERR
      GDX_NOTMAKEG1
      Low level error return
      .fi