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

crv Subroutine


Draws a cubic spline curve.


Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void crv(Coord points[4][3])


REAL points(3,4)


The crv subroutine draws a cubic spline curve segment (defined by the submitted points) according to the current curve basis and precision.


points Array containing the four points that define the curve. These must be 3-D points with x, y, and z coordinates for each point.


The example C language program curve1.c uses the crv subroutine, after changing the curve basis and precision for each curve, to draw three curves.

Implementation Specifics

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.

Related Information

Drawing a series of curve segments with the crvn subroutine.

Setting the current cubic spline curve basis matrix with the curvebasis subroutine.

Setting the number of line segments that draw a curve segment with the curveprecision subroutine.

Defining a cubic spline basis matrix with the defbasis 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 ]