# Synopsis

PDX_MSGT gdx_FindPiecewiseLinSegs(long option, MDA_PTR gdx_db_ptr, double (**seg_pbnds)[2], long *nsegs)

# Purpose

Determine piecewise linear segments of a curve

# Description

This routine finds the parameter bounds defining piecewise linear segments within a curve:

# Input

## option

Not used.

## gdx_db_ptr

Database pointer of the GDX curve.

# Output

## seg_pbnds

Parameter bounds defining the piecewise linear segments (if any). Memory is allocated in this routine and must be deallocated by the calling routine.

## nsegs

Number of piecewise linear segments.

# Tolerances

          MODEL_SPACE_PNT_TOL
          COLLINEAR_TOL
          TANGENT_TOL
          ANGLE_TOL
          .fi

# Return

          GDX_NOERR
          Low level error return
          .fi