|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectm3g04.mesh.Teapot
public class Teapot
Creates a new mesh based on the Bezier patches for the Utah Teapot. The teapot data is taken from http://www.sjbaker.org/teapot/ and includes the patches for the teapot's bottom.
Bezier| Field Summary | |
|---|---|
private static short[] |
CONTROL_POINTS
The actual control points of the teapot. |
private static int |
NUMBER_OF_PATCHES
Number of patches, including reflected ones. |
private static short[][] |
PATCH_DATA
Defines the Bezier patches for the teapot. |
private static int[][] |
REFLECT_DATA
Specifies on what axis a patch needs to be reflected. |
static float |
SCALE
The scale of the vertices in CONTROL_POINTS. |
| Constructor Summary | |
|---|---|
private |
Teapot()
Constructor has private access because class contains static methods exclusively. |
| Method Summary | |
|---|---|
static javax.microedition.m3g.Mesh |
create(int steps,
boolean addNormals,
boolean addTexCoords)
Creates a new teapot with the given subdivisions in s and t direction. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int NUMBER_OF_PATCHES
public static final float SCALE
private static final int[][] REFLECT_DATA
private static final short[][] PATCH_DATA
private static final short[] CONTROL_POINTS
| Constructor Detail |
|---|
private Teapot()
| Method Detail |
|---|
public static javax.microedition.m3g.Mesh create(int steps,
boolean addNormals,
boolean addTexCoords)
steps - number of subdivisions.addNormals - true to generate normals, false otherwise.addTexCoords - true to generate texture coordinates, false
otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||