java.lang.Object
com.marginallyclever.ro3.mesh.Mesh
com.marginallyclever.ro3.mesh.shapes.Box
-
Field Summary
Fields inherited from class com.marginallyclever.ro3.mesh.Mesh
BYTES_PER_FLOAT, BYTES_PER_INT, colorArray, indexArray, normalArray, NUM_BUFFERS, renderStyle, textureArray, vertexArray
-
Constructor Summary
-
Method Summary
Methods inherited from class com.marginallyclever.ro3.mesh.Mesh
addColor, addIndex, addNormal, addTexCoord, addVertex, clear, getBoundingBox, getHasColors, getHasIndexes, getHasNormals, getHasTextures, getNormal, getNumTriangles, getNumVertices, getRenderStyle, getSourceName, getVertex, intersect, isDirty, isLoaded, isTransparent, render, render, setDirty, setLoaded, setRenderStyle, setSourceName, setVertex, unload, updateCuboid, updateVertexBuffers
-
Field Details
-
width
public double width -
height
public double height -
length
public double length
-
-
Constructor Details
-
Box
public Box() -
Box
public Box(double width, double length, double height) Create a box with the given dimensions.- Parameters:
width
- width of the box (x)length
- length of the box (y)height
- height of the box (z)
-