Synopsis

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

Purpose

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

Description

The parm curves 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. All of the sense will be set to true, as the parm curves in a loop are end to end continuous. If any Edge Curve in the loop does not have a parm curve, the gdx_cc_ptr will be returned as MDA_NULL_PTR and an error will not be issued. 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.

Input

option

GDX_SETTRANS

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

gdx_loop_ptr

Database pointer of Loop.

gdx_surf_ptr

Database pointer of surface the loop is on.

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

MDA_NULL_PTR

If any of the Edge Curve in the Loop do not have a parm curve.

Return

      Low level error return
      .fi