LinearExtrusion

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 34 methods for working with LinearExtrusion objects in Java programs. Available methods include: A3DObject, Entity, LinearExtrusion, SceneObject, findProperty, getBoundingBox, getCenter, getDirection, getExcluded, getHeight, getName, getParentNode, and 21 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, center, direction, excluded, height, name, and 8 more.

Properties

NameTypeAccessDescription
shapeProfileReadThe base shape to be extruded.
directionVector3ReadThe direction of extrusion, default value is (0, 0, 1).
heightdoubleReadThe height of the extruded geometry, default value is 1.0.
slicesintReadThe slices of the twisted extruded geometry, default value is 1.
centerbooleanReadIf this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.
twistOffsetVector3ReadThe offset that used in twisting, default value is (0, 0, 0).
twistdoubleReadThe number of degrees of through which the shape is extruded.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringReadGets 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()NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL
getParentNode()NodeConstructor of instance.
setParentNode(value: Node)The Boolean operator used in the operation to create the result mesh.
getParentNodes()ArrayList<Node>Protected constructor to allow derived classes to set name.
getExcluded()booleanThe Boolean operator used in the operation to create the result mesh.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxThe first operand of the Boolean operator.
SceneObject()Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances.
getScene()SceneConstructor of BooleanOperator.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

See Also

 English