Synopsis

PDX_MSGT gdx_FaceNurbCurvesToSplines(long option, int curve_deg, double tolerance, int maxits, MDA_PTR gdx_face_ptr)

Purpose

Convert all face curve geometry from NURBS to splines (parametric).

Description

Cycle through the loops of the face and convert the geometry from NURBS to splines.

If non-NURBS data is encountered, GDX_ENTITY_NOT_NURBS message will be returned. Thus, the face should first be converted to a NURBS based face using the function gdx_FaceToNurbs. Rational NURBS data will be approximated as non-rational nurbs. The curve_deg, tolerance and maxits are used during the approximation.

Input

option

Options not used.

curve_deg

Degree used to approximate rational nurbs curves prior to conversion to splines.

tolerance

Tolerance used to approximate rational nurbs

maxits

Maximum number of iterations during approximation

gdx_face_ptr

The database pointer for the GDX face entity

Output

gdx_face_ptr

The database pointer for the GDX face entity

Tolerances

      MODEL_SPACE_PNT_TOL
      PARM_SPACE_PNT_TOL
      .fi

Return

      GDX_NOERR
      GDX_INVALIDMODEL
      GDX_ENTITY_NOT_NURBS
      Low level error return
      .fi