CubeTwister 2.0alpha141 2011-10-13

idx3d
Class idx3d_ObjectFactory

java.lang.Object
  extended by idx3d.idx3d_ObjectFactory

public class idx3d_ObjectFactory
extends java.lang.Object

Used to create instances of idx3d_Object for given object types.

Version:
3.3 2007-08-26 Werner Randelshofer: The ROTATIONOBJECT factory method does now create rotation objects which have no visible joint line anymore. Added parameter which allows to specify an angle of the rotationobject. Method CYLINDER with three additional parameters added, which allow for switching the ceiling and floor of the cylinder on and off. And allows to specify the angle of the cylinder.

Field Summary
static double deg2rad
           
static double pi
           
 
Constructor Summary
idx3d_ObjectFactory()
           
 
Method Summary
static idx3d_Object BOX(float xsize, float ysize, float zsize)
           
static idx3d_Object BOX(idx3d_Vector size)
           
static idx3d_Object CONE(float height, float radius, int segments)
           
static idx3d_Object CUBE(float size)
           
static idx3d_Object CYLINDER(float height, float radius, int segments)
           
static idx3d_Object CYLINDER(float height, float radius, int segments, boolean withCeiling, boolean withFloor)
           
static idx3d_Object FIELD3D(int resolution, float height)
           
static idx3d_Object HEIGHTFIELD(float[][] data, float height, boolean doubleSided)
           
static idx3d_Object HEIGHTFIELD(idx3d_Texture heightmap, float height, boolean doubleSided)
           
static idx3d_Object ROTATIONOBJECT(idx3d_Vector[] path, int sides)
           
static idx3d_Object SPHERE(float radius, int segments)
           
static idx3d_Object SPIRAL(float h, float r_out, float r_in, float r_tube, float w, float f, int segments, int steps)
           
static idx3d_Object TORUSKNOT(float p, float q, float r_tube, float r_out, float r_in, float h, int segments, int steps)
           
static idx3d_Object TUBE(idx3d_Vector[] path, float r, int steps, boolean closed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pi

public static final double pi
See Also:
Constant Field Values

deg2rad

public static final double deg2rad
See Also:
Constant Field Values
Constructor Detail

idx3d_ObjectFactory

public idx3d_ObjectFactory()
Method Detail

FIELD3D

public static idx3d_Object FIELD3D(int resolution,
                                   float height)

HEIGHTFIELD

public static idx3d_Object HEIGHTFIELD(idx3d_Texture heightmap,
                                       float height,
                                       boolean doubleSided)

HEIGHTFIELD

public static idx3d_Object HEIGHTFIELD(float[][] data,
                                       float height,
                                       boolean doubleSided)

CUBE

public static idx3d_Object CUBE(float size)

BOX

public static idx3d_Object BOX(idx3d_Vector size)

BOX

public static idx3d_Object BOX(float xsize,
                               float ysize,
                               float zsize)

CONE

public static idx3d_Object CONE(float height,
                                float radius,
                                int segments)

CYLINDER

public static idx3d_Object CYLINDER(float height,
                                    float radius,
                                    int segments)

CYLINDER

public static idx3d_Object CYLINDER(float height,
                                    float radius,
                                    int segments,
                                    boolean withCeiling,
                                    boolean withFloor)

SPHERE

public static idx3d_Object SPHERE(float radius,
                                  int segments)

ROTATIONOBJECT

public static idx3d_Object ROTATIONOBJECT(idx3d_Vector[] path,
                                          int sides)

TORUSKNOT

public static idx3d_Object TORUSKNOT(float p,
                                     float q,
                                     float r_tube,
                                     float r_out,
                                     float r_in,
                                     float h,
                                     int segments,
                                     int steps)

SPIRAL

public static idx3d_Object SPIRAL(float h,
                                  float r_out,
                                  float r_in,
                                  float r_tube,
                                  float w,
                                  float f,
                                  int segments,
                                  int steps)

TUBE

public static idx3d_Object TUBE(idx3d_Vector[] path,
                                float r,
                                int steps,
                                boolean closed)

(c) Werner Randelshofer.
All rights reserved.