com.sygem.jazz3d3.primitive
Class Sphere3d

java.lang.Object
  extended bycom.sygem.jazz3d3.Object3d
      extended bycom.sygem.jazz3d3.primitive.Sphere3d

public class Sphere3d
extends Object3d

Create a simple sphere. You can determine the "smoothness" of the sphere. Obviously the more sections the sphere is made from, the more faces are created, and the longer it will take to render the object.

Version:
3.0a
See Also:
Object3d

Field Summary
 
Fields inherited from class com.sygem.jazz3d3.Object3d
USE_ONE_RENDERER, WRAP_FRONT, WRAP_TOP
 
Constructor Summary
Sphere3d(int hSections, int vSections, double x, double y, double z)
          Default constructor.
 
Methods inherited from class com.sygem.jazz3d3.Object3d
addChild, addQuad, addTriangle, addVertex, applyFaceChanges, cleanUp, culled, getCenter, getChildObjects, getCollidable, getCulling, getFace, getFaceColour, getID, getName, getNumberOfFaces, getNumberOfSubFaces, getNumberOfSubVertices, getNumberOfVertices, getOrientationMatrix, getRenderer, getRotationMatrix, getShapeArray, getUseVertexUVCoords, getVertex, getVertexArray, getVisible, getWorldVertex, init, pick, pickClosest, pickFace, prepForDisplay, recreateVertexNormals, rotateLocal, rotateLocal, rotateWorld, rotateWorld, scaleObject, setAllTextures, setAmbientColour, setCollidable, setColour, setCulling, setFaceColour, setFaceColourQuick, setID, setName, setPosition, setRenderer, setShapeArray, setTexture, setTexture, setUseVertexUVCoords, setVertexArray, setVertexTexture, setVisible, toString, translateLocal, translateWorld, visible, wrapUV
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sphere3d

public Sphere3d(int hSections,
                int vSections,
                double x,
                double y,
                double z)
Default constructor.

Parameters:
hSections - The number of horizontal sections the sphere is made from
vSections - The number of vertical sections the sphere is made from
x - The x position of the center of the sphere
y - The y position of the center of the sphere
z - The z position of the center of the sphere


Copyright © 1999-2006 SyGem Software. All Rights Reserved.