All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.util3d.shapes
| Summary |
public class shapes
extends java.lang.Object
{
// Fields 1
public static final String VERSION;
// Constructors 1
public shapes();
// Methods 19
public static void solidCone(double, double, int, int) throws OpenGLException;
public static void solidCube(double) throws OpenGLException;
public static void solidDodecahedron() throws OpenGLException;
public static void solidIcosahedron() throws OpenGLException;
public static void solidOctahedron() throws OpenGLException;
public static void solidSphere(double, int, int) throws OpenGLException;
public static void solidTeapot(double) throws OpenGLException;
public static void solidTetrahedron() throws OpenGLException;
public static void solidTorus(double, double, int, int) throws OpenGLException;
public static void teapot(int, double, int) throws OpenGLException;
public static void wireCone(double, double, int, int) throws OpenGLException;
public static void wireCube(double) throws OpenGLException;
public static void wireDodecahedron() throws OpenGLException;
public static void wireIcosahedron() throws OpenGLException;
public static void wireOctahedron() throws OpenGLException;
public static void wireSphere(double, int, int) throws OpenGLException;
public static void wireTeapot(double) throws OpenGLException;
public static void wireTetrahedron() throws OpenGLException;
public static void wireTorus(double, double, int, int) throws OpenGLException;
}
Utility class providing methods to create simple geometric primitives quickly, such as various Platonic solids and the teapotahedron, the lesser known cousin ( more a Socratic solid ).
The original routines to create these primitives is taken from the GLUT toolkit. Additionally, the GLU library is used from some quadric primitives.
See Also: gluSphere, gluCylinder
| Fields |
· VERSION | Summary | Top |
public static final String VERSION
Version information
| Constructors |
· shapes | Summary | Top |
public shapes()
Default constructor
| Methods |
· wireSphere | Summary | Top |
public static void wireSphere(double radius,
int slices,
int stacks) throws OpenGLException
Creates a wire sphere
· solidSphere | Summary | Top |
public static void solidSphere(double radius,
int slices,
int stacks) throws OpenGLException
Creates a solid sphere
· wireCone | Summary | Top |
public static void wireCone(double base,
double height,
int slices,
int stacks) throws OpenGLException
Creates a wireframe cone
· solidCone | Summary | Top |
public static void solidCone(double base,
double height,
int slices,
int stacks) throws OpenGLException
Creates a solid cone
· wireCube | Summary | Top |
public static void wireCube(double size) throws OpenGLException
Draw a wireframe cube
· solidCube | Summary | Top |
public static void solidCube(double size) throws OpenGLException
Draw a solid box
· wireTorus | Summary | Top |
public static void wireTorus(double innerRadius,
double outerRadius,
int nsides,
int rings) throws OpenGLException
Draws a wire torus
· solidTorus | Summary | Top |
public static void solidTorus(double innerRadius,
double outerRadius,
int nsides,
int rings) throws OpenGLException
Draws a solid torus
· wireDodecahedron | Summary | Top |
public static void wireDodecahedron() throws OpenGLException
Draws a wire dodecahedron
· solidDodecahedron | Summary | Top |
public static void solidDodecahedron() throws OpenGLException
Draws a solid dodecahedron
· teapot | Summary | Top |
public static void teapot(int grid,
double scale,
int type) throws OpenGLException
Builds a generic teapot
· solidTeapot | Summary | Top |
public static void solidTeapot(double scale) throws OpenGLException
Draws a solid teapot
· wireTeapot | Summary | Top |
public static void wireTeapot(double scale) throws OpenGLException
Draws a wireframe teapot
· wireOctahedron | Summary | Top |
public static void wireOctahedron() throws OpenGLException
Draws a wireframe octahedron
· solidOctahedron | Summary | Top |
public static void solidOctahedron() throws OpenGLException
Draws a solid octahedron
· solidIcosahedron | Summary | Top |
public static void solidIcosahedron() throws OpenGLException
Draws a solid icosahedron
· wireIcosahedron | Summary | Top |
public static void wireIcosahedron() throws OpenGLException
Draws a wireframe icosahedron
· wireTetrahedron | Summary | Top |
public static void wireTetrahedron() throws OpenGLException
Draws a wireframe tetrahedron
· solidTetrahedron | Summary | Top |
public static void solidTetrahedron() throws OpenGLException
Draws a solid tetrahedron
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7