Synopsis
PDX_MSGT igdx_144ToFace(long option, MDA_PTR iges_144_ptr, int gdx_model, MDA_PTR *gdx_face_ptr)
Purpose
Create the GDX Face from an IGES 144.
Description
Creates the GDX Face from the the IGES trimmed surface entity (144).
The options IGDX_USE_PARM/IGDX_USE_MODEL will override the preference flags that are set in the IGES 142. Below is the algorithm we use to decide which model/parm curves, in IGES 142, to keep during conversion to GDX. o If neither model/parm curve is a composite, place both curves into the same GDX EDGE_CURVE. o If both the model/parm curves are composites with the same number of curves, place the associated model/parm curves in the composite curve into their own GDX EDGE_CURVE. o If both the model/parm curves are composites, but do not have the same number of curves. o If model preferred, put the model curves into their own GDX EDGE_CURVES and delete the parm curves. o If parm preferred, put the parm curves into their own GDX EDGE_CURVES, delete the original model curves, then regenerate the model curves, since GDX requires them. o Mixture of composite and non-composite parm/model curves o Model preferred o Model curve is composite. o Put the model curves into their own GDX EDGE_CURVES and delete the parm curves. o Model curve is not composite. o Place model curve into its own GDX EDGE_CURVE. Delete the parm curves. o Parm preferred o Parm curve is composite. o Put the parm curves into their own GDX EDGE_CURVES, delete the original model curves, then regenerate the model curves, since GDX requires them. o Parm curve is not composite. o Place parm curve into its own GDX EDGE_CURVE. Delete the original model curve and regenerate it, since GDX requires model curves.
The options IGDX_USE_PARM and IGDX_USE_MODEL can not be used together.
Input
option
IGDX_APPLYMTX
Apply the IGES matrix to the GDX definition
IGDX_USE_PARM
Override IGES 142 pref. flags. Use the parm curves. Delete the original model curves and regenerate them.
IGDX_USE_MODEL
Override IGES 142 pref. flags. Use the model curves. Delete the original parm curves.
iges_144_ptr
The IGES 144 entity database pointer
gdx_model
The GDX Curve Bounded Surface entity model for creation
Output
gdx_face_ptr
The database pointer of the resulting GDX Face
Return
IGDX_NOERR
IGDX_INVALIDENTITYFORM
IGDX_INVALIDMODEL
Low level error return
.fi