Synopsis
PDX_MSGT gdx_FaceMakeModelCurveG1Cont(long option, double approx_tol, int maxits, int degree, MDA_PTR gdx_face_ptr, PDX_BOOL *smoothed)
Purpose
Smooth all G1 discontinuous Curves
Description
Cycle through the loops of the face to detect curves which have G1 discontinuities by converting them to Nurbs. If the curve is G1 discontinuous, smooth it by calling the function gdx_MakeNurbCurveG1Cont. The argument approx_tol is used to convert G1 discontiuous curves to NURBS. The smoothing can only be performed for NURB curves. When the curves gets smoothed, the parm curves of the associated edge_curve get deleted. For more information on the conversion to NURBS and the smoothing, look at the functions gdx_ConvertCurveToNurbCurve and gdx_MakeNurbCurveG1Cont.
Input
option
Options (Not Used)
approx_tol
Nurb approximation tolerance
maxits
Maximum number of iterations to use when converting curves to NURBS. Iteration will stop when number is exceeded.
degree
Degree of converted curve
gdx_face_ptr
GDX face which may contain G1 discontinuous surfaces
Output
gdx_face_ptr
An updated GDX face without G1 discontinuous surfaces
smoothed
At least one Face of face had G1 discontinuity smoothed
Tolerances
MODEL_SPACE_PNT_TOL
NORMAL_MAG_TOL
ANGLE_TOL
.fi
Return
GDX_NOERR
GDX_INVALIDMODEL
Low level error return
.fi