de.javagl.simplerenderer
Class SimpleObjects

java.lang.Object
  extended by de.javagl.simplerenderer.SimpleObjects

public class SimpleObjects
extends java.lang.Object

Utility classes for creating SimpleObject instances


Constructor Summary
SimpleObjects()
           
 
Method Summary
static SimpleObject createPlane(int sizeX, int sizeY, int stride)
          Create a unit square in the X-Z-plane with the given number of points.
static SimpleObject createSphere(int depth, float radius, int stride)
          Create a unit sphere consisting of 20*(4^depth) triangles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleObjects

public SimpleObjects()
Method Detail

createPlane

public static SimpleObject createPlane(int sizeX,
                                       int sizeY,
                                       int stride)
Create a unit square in the X-Z-plane with the given number of points.

Parameters:
sizeX - The number of points in X direction
sizeY - The number of points in Y (i.e. Z) direction
stride - The stride for the simple object
Returns:
The simple square object

createSphere

public static SimpleObject createSphere(int depth,
                                        float radius,
                                        int stride)
Create a unit sphere consisting of 20*(4^depth) triangles.

Parameters:
depth - The recursion depths
radius - The radius of the sphere
stride - The stride for the simple object
Returns:
The simple sphere object