Package com.aspose.threed
Class Box
- java.lang.Object
-
- All Implemented Interfaces:
IMeshConvertible
,INamedObject
public class Box extends Primitive
Box.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Gets the height of the box aligned in y-axis.int
getHeightSegments()
gets or sets the height segments.double
getLength()
Gets the length of the box aligned in z-axis.int
getLengthSegments()
Gets the length segments.double
getWidth()
Gets the width of the box aligned in x-axis.int
getWidthSegments()
Gets the width segmentsvoid
setHeight(double value)
Sets the height of the box aligned in y-axis.void
setHeightSegments(int value)
gets or sets the height segments.void
setLength(double value)
Sets the length of the box aligned in z-axis.void
setLengthSegments(int value)
Sets the length segments.void
setWidth(double value)
Sets the width of the box aligned in x-axis.void
setWidthSegments(int value)
Sets the width segmentsMesh
toMesh()
Convert current object to mesh-
Methods inherited from class com.aspose.threed.Primitive
createEmptyMesh, getCastShadows, getReceiveShadows, merge, setCastShadows, setReceiveShadows, setup
-
Methods inherited from class com.aspose.threed.Entity
getBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
-
Methods inherited from class com.aspose.threed.SceneObject
getScene
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, 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 aligned in z-axis.width
- Width of the box aligned in x-axis.height
- Height of the box aligned in y-axis.
-
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 aligned in z-axis.width
- Width of the box aligned in x-axis.height
- Height of the box aligned in y-axis.lengthSegments
- Length segments.widthSegments
- Width segments.heightSegments
- Height segments.
-
-
Method Detail
-
getLengthSegments
public int getLengthSegments()
Gets the length segments.
-
setLengthSegments
public void setLengthSegments(int value)
Sets the length segments.- Parameters:
value
- New value
-
getWidthSegments
public int getWidthSegments()
Gets the width segments
-
setWidthSegments
public void setWidthSegments(int value)
Sets the width segments- Parameters:
value
- New value
-
getHeightSegments
public int getHeightSegments()
gets or sets the height segments.
-
setHeightSegments
public void setHeightSegments(int value)
gets or sets the height segments.- Parameters:
value
- New value
-
getLength
public double getLength()
Gets the length of the box aligned in z-axis.
-
setLength
public void setLength(double value)
Sets the length of the box aligned in z-axis.- Parameters:
value
- New value
-
getWidth
public double getWidth()
Gets the width of the box aligned in x-axis.
-
setWidth
public void setWidth(double value)
Sets the width of the box aligned in x-axis.- Parameters:
value
- New value
-
getHeight
public double getHeight()
Gets the height of the box aligned in y-axis.
-
setHeight
public void setHeight(double value)
Sets the height of the box aligned in y-axis.- 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.
-
-