[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

curveprecision Subroutine

Purpose

Sets the number of line segments that draw a curve segment.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void curveprecision(Int16 nsegments)

FORTRAN Syntax

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.

Description

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.

Parameter

nsegments Specifies the number of line segments to use in drawing the curve segment.

Example

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.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/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.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]