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

patchprecision Subroutine

Purpose

Sets the precision at which curves are drawn in a patch.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void patchprecision(Int32 usegments, Int32 vsegments)

FORTRAN Syntax

PATCHP(usegments, vsegments)
INTEGER*4 usegments, vsegments

Description

The patchprecision subroutine sets the precision with which the system draws curves to make up a wire frame patch. Patch precisions are similar to curve precisions; they specify the minimum number of line segments used to draw a patch.

Parameters

usegments Specifies the number of line segments used to draw a curve in the u direction.
vsegments Specifies the number of line segments used to draw a curve in the v direction.

Example

The example C language program patch1.c calls the patchprecision subroutine to set the precision for drawing the curves that represent surface patches before calling the patch subroutine.

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

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

Drawing a surface patch with the patch subroutine.

Setting the current spline surface basis matrices with the patchbasis subroutine.

Setting the number of curves used to represent a patch with the patchcurves subroutine.

Drawing a rational surface patch with the rpatch subroutine.

AIX Graphics Library Overview, Drawing NURBS Curves and Surfaces, and Drawing Wire Frame Curves and Surface Patches.


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