Synopsis

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

Purpose

Convert an IGES 143 entity to an all IGES parametric 143 entity

Description

Given an IGES 143 entity that references non-parametric entities, converts the non-parametric entities to parametric and converts all the 141 entities that reference non-parametric IGES entities to reference IGES parametric entities. If the IGES 141 references IGES parametric entities, the IGES parametric entities are duplicated in the new model and references by the new IGES 141.

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.

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

The IGES 143 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 143 entity database pointer

stack

The entity attribute stack handle

model

The model to create the new IGES 143 entity in

tolerance

The conversion approximation tolerance.

max_iters

The maximum iterations for convergence test

Output

db_ptr_143

The new IGES 143 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