# Synopsis

PDX_MSGT igeo_Convert186To143(long option, MDA_PTR db_ptr, EAM_STACK *stack, int model, MDA_COUNT *num_of_143, MDA_PTR **db_ptr_143)

# Purpose

Convert an IGES 186 entity to one or more all IGES 143 entities

# Description

Given an IGES 186 entity, converts the faces (IGES 510) to IGES 143 entities. The IGES 143 entities have the same sense as the IGES faces (i.e. the sense of the shell relative to the face and the face relative to the shell have not been applied to the geoemtry for the IGES 143 entity).

By default the IGES entity matrix is applied to the IGES 143 defining geometry entities and all the IGES 186 non-pointer DE attributes are applied to the new IGES 143 entities. 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 IGES 143 entity.

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

The array of IGES 143 database pointers must be freed by the application. If the application is not part of libiges, iges_Free must be used to free the database pointers.

# Input

## option

### IGES_NOMATRIX

Do not apply entity matrix to data

### IGEO_REMDUPEDGE

Remove the duplicate (seam) face edges when creating the IGES 143 entity. By default, the face edge curves are all used to create the IGES 143 boundary curves.

### IGEO_COMP_BNDRY

For the IGES 141 entities, generate a single composite curve for the model and parameter space boundary edge curves. By default, each Edge maps to a new curve in the IGES 141 entity. This option overrides the IGEO_REMDUPEDGE option and the face should have closed continuous (NO SEAM CROSSINGS) boundaries in both model and parameter space.

## db_ptr

The IGES 186 entity database pointer

## stack

The entity attribute stack handle

## model

The model to create the new IGES 143 entity in

# Output

## num_of_143

The number of IGES 143 entities created

## db_ptr_143

The new IGES 143 entity database pointers (must be freed by the application, using iges_Free if the application is not part of libiges)

# 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
          IGEO_NOMEMORY
          Low level error return
          .fi