Synopsis

PDX_MSGT gdx_ConvertRevSurfToNurbSurf(long option, MDA_PTR db_ptr, int model, double tolerance, int max_iters, void *gdx_nurb_surf)

Purpose

Convert a GDX revolved surface to a GDX NURB Surface

Description

Converts a GDX revolved surface entity to a GDX NURB Surface entity.

The base GDX generatrix curve is converted to the cooresponding NURBS definition and the resultant NURBS curve is used to define the NURBS surface.

The tolerance and max_iters values apply to the subordinate generatrix curve that is converted to a NURBS curve. In addition the tolerance applies for closure test.

If a conversion error occurs any data created during the conversion is deleted and no GDX NURB Surface is created. The NURBS curve entitiy used to create the NURBS surface is deleted.

The GDX surface of revolution entity and the subordinate generatrix entity must be valid GDX definitions.

The conversion is geometrically exact if the conversion of the generatrix curve is exact to the precision of the input data and to machine precision. If the conversion of the generatrix curve is approximate, then the conversion of the revolved surface is approximate.

Input

option

GDX_COMMIT

Commit the GDX NURB surface entity to the database

db_ptr

The valid GDX revolved surface entity database pointer

model

The model to create the GDX NURB Surface in

tolerance

The tolerance for the generatrix curve to NURBS conversion and closure test

max_iters

The maximium iterations for convergence test for generatrix curve to NURBS conversion

Output

gdx_nurb_surf

The GDX NURB Surface entity database pointer or the structure pointer

Tolerances

      PNT_PROJ_TOL
      ANGLE_TOL
      ZERO_TOL
      .fi

Return

      GDX_NOERR
      GDX_INVALIDMODEL
      GDX_INVALIDENTITYTYPE
      Low level error return
      .fi