Synopsis

PDX_MSGT gdx_GetCurveContinuity(long option, MDA_PTR db_ptr, double *cont_toler, int *continuity)

Purpose

Get the GDX curve continuity.

Description

Determines the minimum continuity between all the segments in a GDX curve entity to within the cont_toler tolerance. The continuity value can vary from -1 for discontinuous to a maximium of the degree of the curve. The GDX curve must be a valid GDX definition.

Input

option

GDX_GTEST

Test for G continuity for derivatives to 2

db_ptr

The GDX ccurve entity database pointer.

cont_toler

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

Output

continuity

The level of continuity (-1 to curve degree).

Tolerances

      MODEL_SPACE_PNT_TOL
      TANGENT_TOL
      CURVATURE_TOL
      DERIVATIVE_TOL
      NORMAL_MAG_TOL
      .fi

Return

      GDX_NOERR
      GDX_ENTITYNOTCURVE
      Low level error return
      .fi