# Synopsis

PDX_MSGT gdx_CurveToAnalytic(long option, int model, MDA_PTR gdx_curv_ptr, double tolerances[], long *result_flag, MDA_PTR *gdx_anal_ptr)

# Purpose

Check if a curve is an analytic type to within tolerance

# Description

This function determines if a curve is an analytic type (line, circle, or conic) to within a specified tolerance. It assumes constrained endpoints.

# Input

## option

Not used.

## model

The GDX model for entity creation.

## gdx_curv_ptr

The GDX curve.

## tolerances

Tolerances: [0]: Degenerate curve length tolerance (no analytic type). [1]: Point deviation tolerance. Points on the curve should not lie more than this distance from the candidate analytic.

# Output

## result_flag

Flag: GDX_NOT_ANALYTIC : Curve is not an analytic to within tolerances. GDX_ALREADY_ANALYTIC: Curve is already in analytic form. GDX_FIT_ANALYTIC : Curve is an analytic to within tolerances.

## gdx_anal_ptr

The database pointer of the analytic curve. This pointer is returned ( != MDA_NULL_PTR ) only if GDX_FIT_ANALYTIC is returned.

# Return

          GDX_NOERR
          Low level error return
          .fi