# Synopsis

PDX_MSGT gdx_CECModelToCC(long option, MDA_PTR gdx_cec_ptr, double cont_toler[4], MDA_PTR *gdx_cc_ptr)

# Purpose

Collect the model curves CEC into a composite curve (CC).

# Description

The model curves and senses are extracted from a CEC and used to define a CC. The CC will exist in the same GDX model as the CEC and reference the original curves. By default trans code and parm_range fields in the CC will be set to NULL (ignored). The GDX_SETTRANS option can be used to force the trans codes to be set. If an Edge Curve (EC) referenced by this CEC does not have a model curve, then the error GDX_EC_MISSING_MOD_CURVE will be returned.

# Input

## option

### GDX_SETTRANS

Set the curve transition codes (default is to set trans_code field to NULL)

## gdx_cec_ptr

Database pointer of CEC.

## cont_toler

The continuity tolerance. The distance between the derivatives must be less then or equal this value to have derivative continuity .nf [0] = Point difference (G0) [1] = Radian angular difference (G1) [2] = Curvature difference (G2) [3] = Normalized derivative difference .fi

# Output

## gdx_cc_ptr

Entity database pointer of the GDX CC.

# Return

          GDX_EC_MISSING_MOD_CURVE
          Low level error return
          .fi