Synopsis

PDX_MSGT gdx_LoopModelToCC(long option, MDA_PTR gdx_loop_ptr, double cont_toler[4], MDA_PTR *gdx_cc_ptr)

Purpose

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

Description

The model curves and senses are extracted from a Loop and used to define a CC. The CC will exist in the same GDX model as the Loop and reference the original curves. The sense is the combination of the edge sense in the loop and the edge curve sense in the edge. The GDX_FORCE_SENSE_TRUE option will reverse all curve taht would get a false sense. 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 an Edge in this Loop 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_FORCE_SENSE_TRUE

Copy and reverse curves that have a false sense and set sense to true in composite curve.

gdx_loop_ptr

Database pointer of Loop.

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

      Low level error return
      .fi