Synopsis

PDX_MSGT gdx_CBSGenerateParmCurves(long option, double devtol, long maxits, int fitdeg, MDA_PTR gdx_cbs_ptr)

Purpose

Generate parameter space curves within a GDX Curve Bounded Surface (CBS).

Description

This routine traverses a CBS and generates parameter space curves from the model space curves. Only missing parm curves will be generated. If the parm curves already exist, they should be deleted before generating the new parm curves (gdx_DeleteCBSParmCurves). This function will modify the GDX CBS. The Edge Curves will be modified to point to the new parm curves.

Input

option

GDX_FITDEGMAX

if set, degree of parm space curve(s) will not exceed fitdeg. This will force approximation in some cases. If not set, then a precise parm space curve(s) will be generated.

devtol

The deviation of the model space image of P(s) from the projection of M(t) should not be greater than devtol. This tolerance should be larger than MODEL_SPACE_PNT_TOL, at least by 1 to 2 orders of magnitude.

maxits

Maximum number of iterations. Iteration will be stopped if this number is exceeded.

fitdeg

Degree used for fitting. See option GDX_FITDEGMAX above.

gdx_cbs_ptr

The GDX Curve Bounded Surface entity database pointer

Output

gdx_cbs_ptr

The modified GDX Curve Bounded Surface entity database pointer

Tolerances

      MODEL_SPACE_PNT_TOL
      PARM_SPACE_PNT_TOL
      ANGLE_TOL
      ZERO_TOL
      
      .fi

Return

      GDX_NOERR
      Low level error return
      .fi