Synopsis
PDX_MSGT gdx_FaceNurbCurvesToNurbs(long option, int curve_deg, double tolerance, int maxits, MDA_PTR gdx_face_ptr)
Purpose
Convert all face curve geometry from NURBS to NURBS, if criteria is not met.
Description
Cycle through the loops of the face and convert the geometry from NURBS to NURBS.
If non-NURBS data is encountered, nothing will be done The curve_deg, tolerance and maxits are used during the approximation/conversion.
Input
option
GDX_NURBS_CLAMP
All non clampped nurb curves will be clamped. This option can not be used with GDX_NURBS_MAKE_UNIFORM
GDX_NURBS_REPARAM
All nurb curves will be reparametized between 0.0 and 1.0. This option can not be used with GDX_NURBS_MAKE_UNIFORM
GDX_NURBS_MAKE_UNIFORM
All nurb curves will be approximated to uniform knots nurb. This option can not be used with GDX_NURBS_CLAMP, GDX_NURBS_REPARAM or GDX_NURBS_MAKE_BEZIER.
GDX_NURBS_NONRATIONAL
All rational nurb curves will be approximated to non-rational nurb curves. This option can not be used with GDX_KEEPRRAT
GDX_NURBS_MAKE_BEZIER
All non-bezier nurb curves will be approximated to bezier nurb. This option overides GDX_NURBS_CLAMP and GDX_NURBS_NONRATIONAL options.
GDX_NURBS_FORCE_DEGREE
All nurb curves will be converted/ approximated to the specified degree. This option can not be used with GDX_NURBS_REDUCE_DEGREE or GDX_NURBS_ELEVATE_DEGREE.
GDX_NURBS_REDUCE_DEGREE
Any nurb curves exceed the specified degree will be approximated to the degree specified. This option can not be used with GDX_NURBS_FORCE_DEGREE or GDX_NURBS_ELEVATE_DEGREE.
GDX_NURBS_ELEVATE_DEGREE
Any nurb curves degree less than the specified degree will be converted to the degree specified. This option can not be used with GDX_NURBS_FORCE_DEGREE or GDX_NURBS_REDUCE_DEGREE.
GDX_KEEP_DEGREE_1
When conversion take place, degree 1 will be kept.
GDX_KEEPRAT
Keep rational when elevating the degree This option can not be used with GDX_NURBS_NONRATIONAL
curve_deg
Degree used to approximate, if degree operaion option is specified.
tolerance
Tolerance used to approximate rational nurbs
maxits
Maximum number of iterations during approximation
gdx_face_ptr
The database pointer for the GDX face entity
Output
gdx_face_ptr
The database pointer for the GDX face entity
Tolerances
MODEL_SPACE_PNT_TOL
PARM_SPACE_PNT_TOL
.fi
Return
GDX_NOERR
GDX_INVALIDMODEL
GDX_ENTITY_NOT_NURBS
Low level error return
.fi