Synopsis

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

Purpose

Routine that will generate model curves within a GDX Curve Bounded Surface (CBS).

Description

This routine traverses a CBS and generates new model space curves from parm space curves. By default, only missing model curves will be generated. If the GDX_NEWMODELCRV option is specified, then all model curves will be regenerated. This function will modify the GDX CBS. The Edge Curves will be modified to point to the new model curves. If the GDX_NEWMODELCRV option is specified, all existing model curves will be deleted.

Input

option

GDX_NEWMODELCRV

will generate new model space curves

GDX_FITDEGMAX

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

devtol

Sampled points on the model space curve, M(t), should not deviate from the surface or from the image under S(u,v) of P(s) more than this value. 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