# Synopsis

PDX_MSGT gdx_CheckSurfaceDegenerate(long option, MDA_PTR gdx_db_ptr, double tol, int *status)

# Purpose

Check if a GDX surface is degenerate.

# Description

This routine determines whether or not a surface is degenerate, to within a user-specified tolerance.

The surface must not self-overlap.

# Input

## option

Option (Not used)

## gdx_db_ptr

The surface to be checked.

## tol

The tolerance to use. The surface is considered to be degenerate if any two opposite bound curves and their middle ISO curve are physically identical by the half value of the tolerance

# Output

## status

### GDX_SURF_NO_DEGEN

The surface is not degenerate;

### GDX_SURF_DEGEN_U

The surface is degenerate in U direction;

### GDX_SURF_DEGEN_V

The surface is degenerate in V direction;

### GDX_SURF_DEGEN_UV

The surface is degenerate in U and V directions;

# Return

          Low level error return
          .fi