Synopsis
PDX_MSGT igeo_Convert128To114(long option, MDA_PTR db_ptr_128, EAM_STACK *stack, int model, double tolerance, MDA_PTR *db_ptr)
Purpose
Convert an IGES NURBS surface (128) to an IGES Spline surface (114)
Description
Converts an IGES NURBS surface (128:0) to an IGES Parametric Spline surface entity (114).
By default, the IGES NURBS surface matrix is concatenated with any matrix on the attribute stack and the new IGES matrix created in the model and applied to the converted data.
If a conversion error occurs any data created during the conversion is deleted and no IGES NURBS curve is created.
The IGES NURBS surface entity must be a valid non-rational U and V degree <= 3 IGES NURBS surface definition. If the NURBS surface is rational and/or U or V degree > 3 igeo_Convert128To128 can be used to generate an approximate non-rational U and V degree <= 3 IGES NURBS surface.
The conversion is exact to the precision of the input data and to machine precision.
Input
option
IGES_NOMATRIX
Do not apply entity matrix to data (Note: the matrix currently on the stack will be applied to the data)
db_ptr_128
The valid IGES NURBS surface entity database pointer
stack
The entity attribute stack
model
The model to create the IGES surface in
tolerance
The closure tolerance
Output
db_ptr
The IGES 114 surface entity database pointer
Return
IGEO_NOERR
IGEO_SURFACENOTNURBS
IGEO_BADDEGREE
IGEO_RATIONAL
IGEO_NOMEMORY
Low level error return
.fi