# Synopsis

PDX_MSGT gdx_ConvertNurbSurfToSurf(long option, MDA_PTR gdx_nurb_db_ptr, int model, void *gdx_surface)

# Purpose

Convert a GDX NURB Surface to a GDX surface

# Description

Converts a GDX NURB Surface to a GDX surface based on the form of the GDX NURB Surface, within the GDX Geometry subsystem. If the form of the GDX NURB Surface is GDX_NURB_GENERAL than the GDX NURB Surface data is tested to determine the form of the GDX NURB Surface. If the form can not be determined, then the GDX NURB Surface is created as is in the new model. If a conversion error occurs any data created during the conversion is deleted and no GDX surface entity is created. The GDX NURB Surface entity must be a valid GDX definition The conversions are exact to the precision of the input data and to machine precision.

# Input

## option

### GDX_COMMIT

Commit the GDX surface to the database

### GDX_NONRATTOPARMSPL

Convert non-rational NURBS to GDX parametric splines

### GDX_TOREV

Create a GDX revolve surface for entities that could map to either a revolve surface or an analytical surface(Cylinder, cone, sphere, and torus)

### GDX_MAPCURVE

Map the analytical surface suborinate NURB defining curves to the original type

## gdx_nurb_db_ptr

The valid GDX NURB Surface entity database pointer

## model

The model to create the GDX surface in

# Output

## gdx_surface

The GDX surface entity database pointer or entity structure pointer

# Tolerances

          MODEL_SPACE_PNT_TOL
          ZERO_TOL
          TANGENT_TOL
          CURVATURE_TOL
          DERIVATIVE_TOL
          COLLINEAR_TOL
          .fi

# Return

          GDX_NOERR
          GDX_INVALIDMODEL
          GDX_INVALIDENTITYTYPE
          Low level error return
          .fi