Sets the number of line segments that draw a curve segment.
void curveprecision(Int16 nsegments)
SUBROUTINE CURVEP(nsegments) INTEGER*4 nsegments
Note: For FORTRAN users, this subroutine accepts long integer parameters (INTEGER*4) when invoked from a FORTRAN program, although it accepts short integers when invoked from a C program. The C and FORTRAN syntax shown here reflect this difference.
The curveprecision subroutine sets the number of line segments used to draw a curve segment. Whenever the crv, crvn, rcrv, or rcrvn subroutines execute, a number of straight line segments, represented by the nsegments parameter, approximates each curve segment. Increasing the value of nsegments makes a smoother curve, but also increases the drawing time.
|nsegments||Specifies the number of line segments to use in drawing the curve segment.|
The example C language program curve1.c uses the curveprecision subroutine to draw three curves so that each curve is approximated by 20 line segments.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/usr/include/gl/gl.h||Contains C language constant and variable type definitions for GL.|
|/usr/include/gl/fgl.h||Contains FORTRAN constant and variable type definitions for GL.|
Drawing a cubic spline curve with the crv subroutine.
Drawing a series of curve segments with the crvn subroutine.
Setting the current cubic spline curve basis matrix with the curvebasis subroutine.
Drawing a rational curve with the rcrv subroutine.
Drawing a series of rational curve segments with the rcrvn subroutine.
AIX Graphics Library Overview, Drawing NURBS Curves and Surfaces, and Drawing Wire Frame Curves and Surface Patches.