Synopsis

PDX_MSGT igeo_Convert142ToParm142(long option, MDA_PTR db_ptr, EAM_STACK *stack, int model, double tolerance, int max_iters, MDA_PTR *db_ptr_142, double *max_dev)

Purpose

Convert an IGES 142 entity to an all IGES parametric 142 entity

Description

Given an IGES 142 entity that references non-parametric entities, converts the non-parametric entities to parametrics. If the 142 references IGES parametric entities, the IGES parametric entities are duplicated in the new model and referenced by the new IGES 142.

Parameter space curves are recomputed: .RS 4 o If the base surface was a non-parametric surface that was converted to a parametric(IGES 114) surfaces, .RE .RS 4 o The bounded surface type indicates references to model space curves only. .RE

Model space curves are recomputed: .RS 4 o If the model space curves are not IGES parametric curves .RE .RS 4 o If a new parameter space curve was computed and the preference flag is parameter space, .RE

The tolerance and max_iters values apply to the parametric curves or surface that are approximated. In addition, the tolerance applies to the test for curve and surface closure. The IGES tolerance MODEL_SPACE_PNT_TOL should be at least 2 orders of magnitude smaller than the tolerance value for reasonable results.

By default the IGES entity matrix is applied to the IGES PARAMETRIC curve and all the IGES 142 non-pointer DE attributes are applied to the new parametric base IGES 142 entity. If the model is the same as the @a db_ptr model than all the IGES pointer DE attributes, property pointers and associativity pointers are applied to the new IGES parametric 143 entity.

The IGES 142 entity and all its subordinate entities must be valid IGES definitions.

The conversion is exact where the curve and surface entities convert exactly to the parametric definition, otherwise the conversion is an approximation to tolerance. The projection of new parameter space curves and/or creation of new model space curves from parameter space curves is an approximation to tolerance.

Input

option

IGES_NOMATRIX

Do not apply entity matrix to data

IGEO_NEWPARMCRV

Recompute the parameter space trimming curve by projecting the model space curve to the surface in the cases where the base surface is already a parametric spline surface

IGEO_NEWMODELCRV

Recompute the model space trimming curve from the computed parameter space trimming curve when the parameter space curve is recomputed. The preference flag will be set to parameter space curve prefered.

db_ptr

The IGES 142 entity database pointer

stack

The entity attribute stack handle

model

The model to create the new IGES 142 entity in

tolerance

The conversion approximation tolerance. Note: The MODEL_SPACE_PNT_TOL should be at least 2 orders of magnitude less than this tolerance for correct results.

max_iters

The maximum iterations for convergence test

Output

db_ptr_142

The new IGES 142 entity database pointer

max_dev

The maximum deviation of the model space curve to the surface.

Tolerances

      MODEL_SPACE_PNT_TOL
      PARM_SPACE_PNT_TOL
      ANGLE_TOL
      ZERO_TOL
      CONVERGE_TOL
      KNOT_TOL
      PNT_PROJ_TOL
      PARALLEL_LINES_TOL
      COLLINEAR_TOL
      COPLANAR_TOL
      .fi

Return

      IGEO_NOERR
      Low level error return
      .fi