GINO Graphics Suite - GINO v9.0  

gDrawBezierSphere

Syntax

[C/C++:]
void gDrawBezierSphere(float xp, float yp, float zp, float radius,  ...);
[F90:]
subroutine gDrawBezierSphere(xp, yp, zp, radius, gURot, gVRot, gWRot, gUComp, gVComp)

real, intent(in) :: xp,yp,zp,radius

real, optional, intent(in) :: gURot, gVRot, gWRot
integer, optional, intent(in) :: gUComp, gVComp

Arguments

xp, yp, zp
Origin (centre) of sphere

radius
Radius of sphere

Optional Args

gURot ,gVRot, gWRot
Optional rotations about local axes (default 0.0,0.0,0.0)

gUComp ,gVComp
Optional object complexity (default 10 x 10)

Description

The routine gDrawBezierSphere() draws a 'solid' sphere primitive constructed of outward facing facets according to the specified complexity. The sphere is generated from eight Bezier patches centred at the origin (xp, yp, zp), with the defined radius.

The arguments gURot, gVRot, gWRot specify optional rotations about the object's local axes system. Whilst these will not alter the visual appearance of a coloured sphere, it will affect the appearance of a textured sphere as the texture origin will lie in a different position with relation to the global axes.

The arguments gUComp and gVComp define the object's complexity in its U (circumference) and V (height) axes respectively. These values determine the number of divisions (facets) in either direction and therefore, the objects smoothness.

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

gDrawBezierSphere Usage
gDrawFacet