Synopsis
PDX_MSGT gcr_RevSurf(long option, MDA_PTR orig_db_ptr, double revolve_pnt[3], double revolve_vec[3], double start_angle, double end_angle, MDA_PTR gen_curve_ptr, int gdx_model, MDA_PTR *gdx_REV_ptr)
Purpose
Create a GDX Revolve Surface.
Description
Given the revolve axis revolve_pnt, the normalized revolve axis vector revolve_vec, the start angle, the end angle and the G0 continuous GDX curve gen_curve_ptr, create a GDX revolve surface.
The orig_db_ptr argument should contain the database pointer of the entity that the new entity was created from (usually this should be obtained by the calling routine via mda_GetOrigDbptr) or MDA_NULL_PTR. See the mda_intro man page for more information about predecessor entities.
\fBRules\fR .IP • 3 Angles measured counterclockwise in radians. .IP • 3 0 <= start_angle < MTH_2_PI .IP • 3 start_angle < end_angle <= start_angle + MTH_2_PI .LP
Input
option
GCR_NOVALIDATE
No validation will occur on the input data.
orig_db_ptr
The original entities orig_db_ptr as obtained from the mda_GetOrigDbptr call or MDA_NULL_PTR
revolve_pnt
XYZ point on the revolve axis
revolve_vec
The normalized revolve axis vector
start_angle
The start angle
end_angle
The end angle
gen_curve_ptr
The database pointer of the curve to be revolved.
gdx_model
The GDX model for entity creation
Output
gdx_REV_ptr
Entity database pointer of the GDX Revolved Surface
Tolerances
GDX ANGLE_TOL
.fi
Return
GCR_NOERR
GCR_INVALID_MODEL
GCR_REV_SURF_END_ANGLE
GCR_REV_SURF_ANGLE_DIFF
Low level error return
.fi