Draws a surface patch.
void patch(Matrix geomx, Matrix geomy, Matrix geomz)
SUBROUTINE PATCH(geomx, geomy, geomz) REAL geomx(4,4), geomy(4,4), geomz(4,4)
The patch subroutine draws a surface patch using the current settings from the patchbasis, patchprecision, and patchcurves subroutines. The control points geomx, geomy, and geomz determine the shape of the patch. The rpatch subroutine is essentially the same except that it draws a rational surface patch.
|geomx||Specifies a 4x4 matrix containing the x coordinates of the 16 control points of the patch.|
|geomy||Specifies a 4x4 matrix containing the y coordinates of the 16 control points of the patch.|
|geomz||Specifies a 4x4 matrix containing the z coordinates of the 16 control points of the patch.|
The example C language program patch1.c uses the patch subroutine to draw three surface patches after defining the settings for each patch.
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.|
Defining a cubic spline basis matrix with the defbasis 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.
Setting the precision at which curves are drawn with the patchprecision 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.