# Synopsis

PDX_MSGT gdb_MeasureCurveComplexity(long option, MDA_PTR gdx_curve_ptr, double tolerance, double *score, GDB_CURVE_COMPLEXITY *gdb_cur_scores, double *arc_length)

# Purpose

Measures the complexity of a GDX curve

# Description

Measures the complexity of a GDX curve. Analyzes the curve and assigns a score based on the geometric, parametric, and data complexity of the curve.

# Input

## option

### GDB_LEAST_ACCURACY

Use the least accurate but fastest method.

### GDB_MID_ACCURACY

Use middle accuracy method.

### GDB_MOST_ACCURACY

Use most accurate but slowest method.

## gdx_curve_ptr

The GDX curve to be analyzed.

## tolerance

Tolerance used to determine curve closure and curve degeneracy.

# Output

## score

The complexity score.

## gdb_cur_scores

If this pointer is NULL, then it is not used. Otherwise, the individual scores for each category are returned.

## arc_length

The approximate arc length of the curve.

# Return

          GDB_NOERR
          Low level error return
          .fi