Box

Overview

Box is a class in Aspose.3D FOSS for Java. Inherits from: Primitive, IMeshConvertible.

Box primitive.

This class provides 42 methods for working with Box objects in Java programs. Available methods include: A3DObject, Box, Entity, Primitive, SceneObject, findProperty, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, getHeight, getHeightSegments, and 25 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, castShadows, entityRendererKey, excluded, height, heightSegments, and 10 more.

Properties

NameTypeAccessDescription
lengthSegmentsintReadGets or sets length segments.
widthSegmentsintReadGets or sets width segments.
heightSegmentsintReadGets or sets height segments.
lengthdoubleReadGets or sets length of box aligned in z-axis.
widthdoubleReadGets or sets width of box aligned in x-axis.
heightdoubleReadGets or sets height of box aligned in y-axis.
castShadowsbooleanReadGets whether this geometry can cast shadow.
receiveShadowsbooleanReadGets whether this geometry can receive shadow.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Box()Initializes a new instance of Box class.
Box(length: double, width: double, height: double)Initializes a new instance of Box class.
getLengthSegments()intGets or sets length segments.
setLengthSegments(value: int)Sets the length segments value.
getWidthSegments()intGets or sets width segments.
setWidthSegments(value: int)Sets the width segments value.
getHeightSegments()intGets or sets height segments.
setHeightSegments(value: int)Sets the height segments value.
getLength()doubleGets or sets length of box aligned in z-axis.
setLength(value: double)Sets the length value.
getWidth()doubleGets or sets width of box aligned in x-axis.
setWidth(value: double)Sets the width value.
getHeight()doubleGets or sets height of box aligned in y-axis.
setHeight(value: double)Sets the height value.
toMesh()MeshConvert current object to mesh.
getCastShadows()booleanGets whether this geometry can cast shadow.
setCastShadows(value: boolean)Initializes a new instance of Box class.
getReceiveShadows()booleanGets whether this geometry can receive shadow.
setReceiveShadows(value: boolean)Sets the receive shadows value.
Primitive()Initializes a new instance of the Primitive class.
Primitive(name: String)Initializes a new instance of the Primitive class.
Entity(name: String)Calls Entity(name) on this Box instance.
getParentNode()NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes()ArrayList<Node>Returns the parent nodes.
getExcluded()booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxReturns the bounding box.
getEntityRendererKey()EntityRendererKeyReturns the entity renderer key.
SceneObject()Box primitive.
SceneObject(name: String)Calls SceneObject(name) on this Box instance.
getScene()SceneReturns the scene.
A3DObject()Calls A3DObject on this Box instance.
A3DObject(name: String)Calls A3DObject(name) on this Box instance.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Box instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Box instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Box instance.
removeProperty(property: Property)booleanGets or sets width segments.

See Also

 English