Package com.aspose.threed
Class Box
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Primitive
-
- com.aspose.threed.Box
-
- All Implemented Interfaces:
IMeshConvertible
public class Box extends Primitive
Box.
-
-
Constructor Summary
Constructors Constructor Description Box()
Initializes a new instance of theBox
class.Box(double length, double width, double height)
Initializes a new instance of theBox
class.Box(java.lang.String name, double length, double width, double height, int lengthSegments, int widthSegments, int heightSegments)
Initializes a new instance of theBox
class.
-
Method Summary
Modifier and Type Method Description BoundingBox
getBoundingBox()
Gets the bounding box of current entity in its object space coordinate system.double
getHeight()
Gets the height of the boxdouble
getLength()
Gets the length of the boxdouble
getWidth()
Gets the width of the boxvoid
setHeight(double value)
Sets the height of the boxvoid
setLength(double value)
Sets the length of the boxvoid
setWidth(double value)
Sets the width of the boxMesh
toMesh()
Convert current object to mesh-
Methods inherited from class com.aspose.threed.Primitive
createRenderableResource, merge, setup
-
Methods inherited from class com.aspose.threed.Entity
getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
Box
public Box()
Initializes a new instance of theBox
class.
-
Box
public Box(double length, double width, double height)
Initializes a new instance of theBox
class.- Parameters:
length
- Length of the box.width
- Width of the box.height
- Height of the box.
-
Box
public Box(java.lang.String name, double length, double width, double height, int lengthSegments, int widthSegments, int heightSegments)
Initializes a new instance of theBox
class.- Parameters:
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.
-
-
Method Detail
-
getLength
public double getLength()
Gets the length of the box
-
setLength
public void setLength(double value)
Sets the length of the box- Parameters:
value
- New value
-
getWidth
public double getWidth()
Gets the width of the box
-
setWidth
public void setWidth(double value)
Sets the width of the box- Parameters:
value
- New value
-
getHeight
public double getHeight()
Gets the height of the box
-
setHeight
public void setHeight(double value)
Sets the height of the box- Parameters:
value
- New value
-
toMesh
public Mesh toMesh()
Convert current object to mesh- Specified by:
toMesh
in interfaceIMeshConvertible
- Specified by:
toMesh
in classPrimitive
- Returns:
- The mesh.
-
getBoundingBox
public BoundingBox getBoundingBox()
Gets the bounding box of current entity in its object space coordinate system.- Overrides:
getBoundingBox
in classEntity
-
-