com.vwp.j3d.utils.geometry
Class QuadBox
java.lang.Object
Shape3D
com.vwp.j3d.utils.geometry.QuadBox
public class QuadBox
- extends Shape3D
This class is a replacement for Suns com.sun.j3d.utils.Box class. It creates
A Box with only one Geometry object using quads instead of triangles. This
should improve the performance on OpenGL / GLX systems.
|
Constructor Summary |
QuadBox()
The default constructor. |
QuadBox(float xdim,
float ydim,
float zdim,
Appearance ap)
QuadBox constructor |
QuadBox(float xdim,
float ydim,
float zdim,
int flags,
Appearance ap)
QuadBox constructor |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GENERATE_NORMALS
public static final int GENERATE_NORMALS
GENERATE_NORMALS_INWARD
public static final int GENERATE_NORMALS_INWARD
ENABLE_APPEARANCE_MODIFY
public static final int ENABLE_APPEARANCE_MODIFY
ENABLE_PICK_REPORTING
public static final int ENABLE_PICK_REPORTING
GENERATE_TEXTURE_COORDS
public static final int GENERATE_TEXTURE_COORDS
xdim
public float xdim
ydim
public float ydim
zdim
public float zdim
QuadBox
public QuadBox()
- The default constructor. It creates a 1x1x1 m white QuadBox.
QuadBox
public QuadBox(float xdim,
float ydim,
float zdim,
Appearance ap)
- QuadBox constructor
- Parameters:
xdim - width of the QuadBoxydim - height of the QuadBoxzdim - depth of the QuadBoxap - Appearance of the QuadBox which has to be generated
QuadBox
public QuadBox(float xdim,
float ydim,
float zdim,
int flags,
Appearance ap)
- QuadBox constructor
- Parameters:
xdim - width of the QuadBoxydim - height of the QuadBoxzdim - depth of the QuadBoxflags - specifies some properties of the QuadBox object, for more
information please refer the flag values taken from @Boxap - Appearance of the QuadBox which has to be generated