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
| Name | Type | Access | Description |
|---|---|---|---|
shape | Profile | Read | The base shape to be extruded. |
direction | Vector3 | Read | The direction of extrusion, default value is (0, 0, 1). |
height | double | Read | The height of the extruded geometry, default value is 1.0. |
slices | int | Read | The slices of the twisted extruded geometry, default value is 1. |
center | boolean | Read | 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. |
twistOffset | Vector3 | Read | The offset that used in twisting, default value is (0, 0, 0). |
twist | double | Read | The number of degrees of through which the shape is extruded. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
LinearExtrusion() | Constructor of instance. |
LinearExtrusion(shape: Profile, height: double) | Constructor of instance. |
getShape() → Profile | The base shape to be extruded. |
setShape(value: Profile) | The base shape to be extruded. |
getDirection() → Vector3 | The direction of extrusion, default value is (0, 0, 1). |
setDirection(value: Vector3) | The direction of extrusion, default value is (0, 0, 1). |
getHeight() → double | The 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() → int | The 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() → 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. |
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() → Vector3 | The 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() → double | The 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() → Mesh | Not 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() → Node | Constructor 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() → boolean | The Boolean operator used in the operation to create the result mesh. |
setExcluded(value: boolean) | Sets the excluded value. |
getBoundingBox() → BoundingBox | The first operand of the Boolean operator. |
SceneObject() | Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances. |
getScene() → Scene | Constructor of BooleanOperator. |
A3DObject() | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
getName() → String | The segments of the curve. |
setName(name: String) | Constructs a CircleShape profile with specified radius. |
getProperties() → PropertyCollection | Initializes a new instance of Cylinder class. |
findProperty(name: String) → Property | Initializes a new instance of the Bone class. |
getProperty(name: String) → Object | Gets the transform matrix of the node in current pose. |
setProperty(name: String, value: Object) | Gets the width segments. |
removeProperty(name: String) → boolean | Gets flip coordinate system of control points/normal during importing/exporting. |