Package renderer.models_L
Class Box
- java.lang.Object
-
- renderer.scene.Model
-
- renderer.models_L.Box
-
public class Box extends Model
Create a wireframe model of a cuboid aligned with the x, y, and z axes and with one corner at the origin.Here is a picture showing how the cuboid's eight vertices are labeled.
See https://en.wikipedia.org/wiki/Cuboidy | | v4 +---------------------+ v5 /| /| / | / | / | / | / | / | / | / | v7 +---------------------+ v6 | | | | | | | | | | | v0=(0,0,0) | | v1 | +---------------|-----+------> x | / | / | / | / | / | / | / | / |/ |/ +---------------------+ /v3 v2 / z
- See Also:
Cube
-
-
Field Summary
-
Fields inherited from class renderer.scene.Model
colorList, name, primitiveList, vertexList, visible
-
-
-
-
Constructor Detail
-
Box
public Box()
Create aBox
with all three sides of length 1.
-
Box
public Box(double xs, double ys, double zs)
Create aBox
with the given side lengths.- Parameters:
xs
- the size of theBox
along the x-axisys
- the size of theBox
along the y-axiszs
- the size of theBox
along the z-axis
-
-