Jazz3D API


com.sygem.jazz3d3.primitive
Class Lathe3d

java.lang.Object
  |
  +--com.sygem.jazz3d3.Object3d
        |
        +--com.sygem.jazz3d3.primitive.Lathe3d

public class Lathe3d
extends Object3d

Create an object that looks like it was turned on a lathe. You define a 2-dimensional outline of the object, which is then rotated around the central axis. You can determine the "smoothness" of the object. Obviously the more sections the object is made from, the more faces are created, and the longer it will take to render the object.

Version:
3.0a
Author:
SyGem Software
See Also:
Object3d

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

Constructor Detail

Lathe3d

public Lathe3d(double[][] data,
               int sections,
               double x,
               double y,
               double z)
Default constructor.
Parameters:
data - A 2d array of points defining the shape of the object
sections - The number of sections the lathed object 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

©2001 SyGem Software