public class Box extends Model
Here is a picture showing how the cube's eight vertices are labeled.
v[4]
+-----------------+ v[5]
/| /|
/ | / |
/ | / |
/ | / |
v[7] +-----------------+ v[6] |
| | | | y
| | | | |
| | | | |
| v[0] +---------|-------+ v[1] |
| / | / |
| / | / +----. x
| / | / /
|/ |/ /
+-----------------+ /
v[3] v[2] z
Cube
hidden, lineSegmentList
public Box()
public Box(double xs, double ys, double zs)
xs
- the size of the cube along the x-axisys
- the size of the cube along the y-axiszs
- the size of the cube along the z-axis