Synopsis
PDX_MSGT gdx_FaceMakeSurfG1Cont(long option, double approx_tol, int maxits, int u_degree, int v_degree, MDA_PTR gdx_face_ptr, PDX_BOOL *smoothed)
Purpose
If Surface in GDX Face is G1 discontinuous smooth it.
Description
Check to see if the surface in the face is G1 discontinuous. If it is, convert it to a NURBS surface and smooth it. The arguments approx_tol maxits, u_degree, v_degree are used to convert G1 discontiuous surfaces to NURBS. The smoothing can only be performed for NURBS surfaces. When the surface gets smoothed, the parm curves of the associated face get deleted. For more information on the conversion to NURBS and the smoothing, look at the functions gdx_ConvertSurfaceToNurbSurf and gdx_MakeNurbSurfG1Cont.
Input
option
Options (Not Used)
approx_tol
Nurb approximation tolerance
maxits
Maximum number of iterations to use when converting surfaces to NURBS. Iteration will stop when number is exceeded.
u_degree
Degree of converted surface in u direction
v_degree
Degree of converted surface in v direction
gdx_face_ptr
The database pointer for the GDX face entity
Output
gdx_face_ptr
Updated face G1 continuous surface
smoothed
Boolean indicating that G1 discontinuity was smoothed
Tolerances
MODEL_SPACE_PNT_TOL
NORMAL_MAG_TOL
ANGLE_TOL
.fi
Return
GDX_NOERR
GDX_INVALIDMODEL
Low level error return
.fi