Synopsis
PDX_MSGT gdx_ConvertNurbCurveToCurve(long option, MDA_PTR gdx_nurb_db_ptr, int model, double tolerance, void *gdx_curve)
Purpose
Convert a GDX NURB Curve to a GDX curve
Description
Converts a GDX NURB Curve to a GDX curve based on the form of the GDX NURB Curve, within the GDX Geometry subsystem. If the form of the GDX NURB Curve is GDX_NURB_GENERAL than the GDX NURB Curve data is tested to determine the form of the GDX NURB Curve. If the form can not be determined, then the GDX NURB Curve is created as is in the new model. If a conversion error occurs any data created during the conversion is deleted and no GDX curve entity is created. The GDX NURB Curve entity must be a valid GDX definition The conversions are exact to the precision of the input data and to machine precision.
Input
option
GDX_COMMIT
Commit the GDX curve to the database
GDX_NONRATTOPARMSPL
Convert non-rational NURBS to GDX parametric splines
gdx_nurb_db_ptr
The valid GDX NURB Curve entity database pointer
model
The model to create the GDX curve in
tolerance
The tolerance for closure check
Output
gdx_curve
The GDX curve entity database pointer or entity structure pointer
Tolerances
MODEL_SPACE_PNT_TOL
ZERO_TOL
TANGENT_TOL
CURVATURE_TOL
DERIVATIVE_TOL
COLLINEAR_TOL
.fi
Return
GDX_NOERR
GDX_INVALIDMODEL
GDX_INVALIDENTITYTYPE
Low level error return
.fi