LinearExtrusion

Overview

LinearExtrusion is a class in Aspose.3D FOSS for Java. Inherits from: Entity.

Linear extrusion takes a 2D shape as input and extends the shape in the 3rd dimension.

This class provides 38 methods for working with LinearExtrusion objects in Java programs. Available methods include: A3DObject, Entity, LinearExtrusion, SceneObject, findProperty, getBoundingBox, getCenter, getDirection, getEntityRendererKey, getExcluded, getHeight, getName, and 22 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, center, direction, entityRendererKey, excluded, height, and 9 more.

Properties

NameTypeAccessDescription
shapeProfileRead/WriteThe base shape to be extruded.
directionVector3Read/WriteThe direction of extrusion, default value is (0, 0, 1).
heightdoubleRead/WriteThe height of the extruded geometry, default value is 1.0.
slicesintRead/WriteThe slices of the twisted extruded geometry, default value is 1.
centerbooleanRead/WriteIf this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.
twistOffsetVector3Read/WriteThe offset that used in twisting, default value is (0, 0, 0).
twistdoubleRead/WriteThe number of degrees of through which the shape is extruded.
parentNodeNodeRead/WriteGets or sets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanRead/WriteGets or sets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
LinearExtrusion()Constructor of instance.
LinearExtrusion(shape: Profile, height: double)Constructor of instance.
getShape() → ProfileThe base shape to be extruded.
setShape(value: Profile)The base shape to be extruded.
getDirection() → Vector3The direction of extrusion, default value is (0, 0, 1).
setDirection(value: Vector3)The direction of extrusion, default value is (0, 0, 1).
getHeight() → doubleThe height of the extruded geometry, default value is 1.0.
setHeight(value: double)The height of the extruded geometry, default value is 1.0.
getSlices() → intThe slices of the twisted extruded geometry, default value is 1.
setSlices(value: int)The slices of the twisted extruded geometry, default value is 1.
getCenter() → booleanIf this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.
setCenter(value: boolean)If this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.
getTwistOffset() → Vector3The offset that used in twisting, default value is (0, 0, 0).
setTwistOffset(value: Vector3)The offset that used in twisting, default value is (0, 0, 0).
getTwist() → doubleThe number of degrees of through which the shape is extruded.
setTwist(value: double)The number of degrees of through which the shape is extruded.
toMesh() → MeshNot implemented in the FOSS edition — throws at runtime. Convert the extrusion to mesh.
Entity(name: String)Calls Entity(name) on this LinearExtrusion instance.
getParentNode() → NodeConstructor of instance.
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()Linear extrusion takes a 2D shape as input and extends the shape in the 3rd dimension.
SceneObject(name: String)Calls SceneObject(name) on this LinearExtrusion instance.
getScene() → SceneReturns the scene.
A3DObject()Calls A3DObject on this LinearExtrusion instance.
A3DObject(name: String)Calls A3DObject(name) on this LinearExtrusion instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyCalls findProperty(name) on this LinearExtrusion instance.
getProperty(name: String) → ObjectCalls getProperty(name) on this LinearExtrusion instance.
setProperty(name: String, value: Object)Constructor of instance.
removeProperty(name: String) → booleanCalls removeProperty(name) on this LinearExtrusion instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this LinearExtrusion instance.

See Also

 English