# Synopsis

PDX_MSGT gdx_NurbSurfToBezier(long option, MDA_PTR db_ptr, double *cont_toler, int cont_deg, double approx_tol, long max_iters, long *num_ptrs, MDA_PTR **new_ptrs)

# Purpose

Converts a GDX NURB surface to a bezier surface.

# Description

First, the input NURB surface is split at discontinuities and then is converted to a non-rational NURB. Next, the knot information is retrieved and analyzed. The end points are clamped (i.e. end points knots are made to be orderful) and the interior knots are made to degreeful. Finally the knots are reassigned to whole number values (i.e. 0,0,0,0, 1,1,1, ... n,n,n,n where 'n' is the number of distinct knots).

# Input

## option

Options (not used)

## db_ptr

Database pointer of the incoming GDX entity

## cont_toler

Array of continuity tolerances (i.e. G0_TOL, G1_TOL, G2_TOL, NORM_DERV_TOL)

## cont_deg

Degree of continuity tolerance (i.e. CONT_DEG)

## approx_tol

Linear approximation tolerance (i.e. TOLER)

## max_iters

Maximum number of iterations (i.e. MAX_ITERS)

# Output

## num_ptrs

Number of resultant entity pointers

## new_ptrs

Resultant entity pointer

# Return

GDX error code