Package renderer.models_L
Class Cube
- java.lang.Object
-
- renderer.scene.Model
-
- renderer.models_L.Cube
-
- Direct Known Subclasses:
Cube3
public class Cube extends Model
Create a wireframe model of a cube with its center at the origin, having edge length 2, and with its vertices at(±1, ±1, ±1)
.Here is a picture showing how the cube's eight corners are labeled.
See https://en.wikipedia.org/wiki/Cubev4=(-1,1,-1) +---------------------+ v5=(1,1,-1) /| /| / | / | / | / | / | / | / | / | v7 +---------------------+ v6 | | | | | | | | | | | v0=(-1,-1,-1) | | | +---------------|-----+ v1=(1,-1,-1) | / | / | / | / | / | / | / | / |/ |/ +---------------------+ v3=(-1,-1,1) v2=(1,-1,1)
- See Also:
Tetrahedron
,Octahedron
,Icosahedron
,Dodecahedron
-
-
Field Summary
-
Fields inherited from class renderer.scene.Model
colorList, name, primitiveList, vertexList, visible
-
-
-
-
Constructor Detail
-
Cube
public Cube()
Create a cube with its center at the origin, having edge length 2, and with its vertices at(±1, ±1, ±1)
.
-
-