# Synopsis

PDX_MSGT gdx_SurfaceToRectMesh(long option, MDA_PTR gdx_db_ptr, double tol, int model, int num_per_seg, MDA_PTR *gdx_rect_mesh_ptr)

# Purpose

Approximate a surface as a rect_mesh

# Description

Approximate a surface as a rect_mesh.

# Input

## option

### GDX_NORM

The parameter space values will be normalized. The default option is to keep them unnormalized.

### GDX_APPROX_BY_TOL_NUM_PNTS_PER_SEG

Approximate surface with both u and v degree are 1, num_pnts_per_seg method.

## gdx_db_ptr

Database pointer of GDX entity

## tol

The approximation tolerance

## model

The model to create the approximation entity in

## num_per_seg

Number per segment if option GDX_APPROX_BY_TOL_NUM_PNTS_PER_SEG is specified.

# Output

## gdx_rect_mesh_ptr

The GDX_POLYLINE database pointer

# Return

          GDX_NOERR
          Low level error return
          .fi