# Synopsis

PDX_MSGT gdx_LoopGenerateModelCurves(long option, MDA_PTR gdx_loop_ptr, MDA_PTR gdx_surf_ptr, double devtol, long maxits, int fitdeg, int *status)

# Purpose

Generate missing Model Space curves in a Loop.

# Description

Generate missing model space curves for the Loop.

# Input

## option

Options (Not Used)

## gdx_loop_ptr

Database pointer for the GDX Loop entity

## gdx_surf_ptr

Database pointer for the Surface entity on which the loop lies

## 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.

## status

Enumerated flag indicating whether the status of model curve generation : GDX_MODEL_UNKNOWN (-1) = Generation results unknown GDX_MODEL_GEN_FAILED (0) = Generation failed GDX_MODEL_EXISTED (1) = Model curves already existed GDX_MODEL_GEN_CURVE (2) = Generation succeeded GDX_MODEL_PARMOUTOFRANGE (3) = Parm curves out of range of surface

# Output

## gdx_loop_ptr

An updated GDX Loop with model space curves

# Tolerances

          MODEL_SPACE_PNT_TOL
          PARM_SPACE_PNT_TOL
          ANGLE_TOL
          ZERO_TOL
          .fi

# Return

          GDX_NOERR
          GDX_INVALIDMODEL
          Low level error return
          .fi