Syntax
[C/C++:]
void gDrawSplineSurface(int nx, int ny, GPOINT3 *mesh,  ...);
[F90:]
subroutine gDrawSplineSurface(nx, ny, mesh, gUComp, gVComp)
integer, intent(in) :: nx,ny
type (GPOINT3), intent(in) :: mesh(nx,ny)
integer, optional, intent(in) :: gUComp, gVComp
Arguments
nx, ny
Number of points in mesh
mesh
Two dimensions array of 3D mesh points
Optional Args
gUComp ,gVComp
Optional object complexity (default 4*nx and 4*ny)
Description
The routine gDrawSplineSurface() draws a surface based on an interpolation of the supplied mesh such that the surface passes through all the data points supplied.
The arguments
gUComp and
gVComp define the object's complexity in its U and V axes respectively. These values determine the number of divisions (facets) in either direction and therefore the object's smoothness. The actual complexity is, however, always rounded down to a complete multiple of the number of data points on the mesh in either direction so that the surface passes through all the data points.
The tension of the spline surface is controlled by the tension routine gSetSplineTension() and the routine takes special account of data that is closed in the U direction, by ensuring a smooth join between the start and end of the surface.
The facets are drawn in the current facet colour/material according to the current lighting/shading environment and subject to the current modelling/viewing transformations.
See Also
gDrawSplineSurface UsagegDrawFacetgSetSplineTension