public class Box extends Primitive
Constructor and Description |
---|
Box()
Initializes a new instance of the
Box class. |
Box(double length,
double width,
double height)
Initializes a new instance of the
Box class. |
Box(String name,
double length,
double width,
double height,
int lengthSegments,
int widthSegments,
int heightSegments)
Initializes a new instance of the
Box class. |
Modifier and Type | Method and Description |
---|---|
BoundingBox |
getBoundingBox()
Gets the bounding box of current entity in its object space coordinate system.
|
double |
getHeight()
Gets the height of the box
|
double |
getLength()
Gets the length of the box
|
double |
getWidth()
Gets the width of the box
|
void |
setHeight(double value)
Sets the height of the box
|
void |
setLength(double value)
Sets the length of the box
|
void |
setWidth(double value)
Sets the width of the box
|
Mesh |
toMesh()
Convert current object to mesh
|
getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public Box()
Box
class.public Box(double length, double width, double height)
Box
class.length
- Length of the box.width
- Width of the box.height
- Height of the box.public Box(String name, double length, double width, double height, int lengthSegments, int widthSegments, int heightSegments)
Box
class.name
- Name of the box.length
- Length of the box.width
- Width of the box.height
- Height of the box.lengthSegments
- Length segments.widthSegments
- Width segments.heightSegments
- Height segments.public double getLength()
public void setLength(double value)
value
- New valuepublic double getWidth()
public void setWidth(double value)
value
- New valuepublic double getHeight()
public void setHeight(double value)
value
- New valuepublic Mesh toMesh()
toMesh
in interface IMeshConvertible
toMesh
in class Primitive
public BoundingBox getBoundingBox()
getBoundingBox
in class Entity
Copyright © 2018. All rights reserved.