LinearExtrusion
Overview
LinearExtrusion is a class in Aspose.3D FOSS for .NET.
Inherits from: Entity, INamedObject, IMeshConvertible.
Linear extrusion takes a 2D shape as input and extends the shape in the 3rd dimension.
This class provides 12 methods for working with LinearExtrusion objects in .NET programs.
Available methods include: A3DObject, Entity, FindProperty, GetBoundingBox, GetEntityRendererKey, GetProperty, LinearExtrusion, RemoveProperty, SceneObject, SetProperty, ToMesh.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Center, Direction, Excluded, Height, Name, ParentNode, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Shape | Profile | Read/Write | The base shape to be extruded. |
Direction | Vector3 | Read/Write | The direction of extrusion, default value is (0, 0, 1) |
Height | double | Read/Write | The height of the extruded geometry, default value is 1.0 |
Slices | int | Read/Write | The slices of the twisted extruded geometry, default value is 1. |
Center | bool | Read/Write | 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/Write | The offset that used in twisting, default value is (0, 0, 0). |
Twist | double | Read/Write | The number of degrees of through which the shape is extruded. |
Excluded | bool | Read/Write | Gets or sets whether to exclude this entity during exporting. |
ParentNodes | List<Node> | Read | Gets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing |
ParentNode | Node | Read/Write | Gets or sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes. |
Scene | Scene | Read | Gets the scene that this object belongs to |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
Methods
| Signature | Description |
|---|---|
LinearExtrusion() | Constructor of instance |
LinearExtrusion(shape: Profile, height: double) | Constructor of instance The base shape to be extruded The height of the extruded geometry |
ToMesh() | Not implemented in the FOSS edition — throws at runtime. Convert the extrusion to mesh. |
Entity(name: string) | Initializes a new instance of the Entity class. |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
SceneObject(name: string) | Initialize an SceneObject with a default name |
A3DObject() | Initializes a new instance of the A3DObject class with no name. |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. |