creates a polygonal approximation of a sphere.
creates a polygonal approximation of a sphere. The sphere is composed of a numRings rings of polygons about the Z axis, with numFacets polygons in each ring. The top and bottom of the sphere are capped by polygons (that is, the facets of the top and bottom rings do not meet at a point); thus, the actual z extent of the sphere is slightly less than the radius; the z extent is returned in actualZ. (The difference between actualZ and the radius is 0.5*radius/numRings-1). color1 is used for for the top and bottom rings; for other rings, color1 and color2 alternate with each facet.
Alphabetic index HTML hierarchy of classes or Java