# Synopsis

PDX_MSGT gdx_ExtractSubCurveFromCurve(long option, MDA_PTR gdx_db_ptr, int model, double u1, double u2, double clo_tol, void *gdx_cur)

# Purpose

Extract a subcurve from a GDX curve.

# Description

Given start and end parameters, u1 and u2, extract that section of the curve between u1 and u2 (as a GDX curve of the same type). Let umin and umax be the minimum and maximum bounds of the curve. Then the following must hold: umin <= u1 < u2 <= umax, and either u1 != umin or u2 != umax.

# Input

## option

### GDX_COMMIT

Commit GDX entity to the datbase. The default is do not commit.

## gdx_db_ptr

The GDX curve database pointer to extract the sub curve from

## model

The model to create the sub curve in

## u1

Start parameter defining the subcurve.

## u2

End parameter defining the subcurve.

## clo_tol

Tolerance for checking closure of curves

# Output

## gdx_cur

The GDX sub curve database pointer or structure pointer

# Tolerances

          KNOT_TOL
          COPLANAR_TOL
          .fi

# Return

          GDX_NOERR
          Low level error return
          .fi