LinearExtrusion
Overview
LinearExtrusion is a class in Aspose.3D FOSS for Python.
Inherits from: Entity.
LinearExtrusion converts a 2D shape into a 3D mesh by extruding along a direction with configurable height, slices, and twist.
This class declares 9 methods for LinearExtrusion objects in Python programs.
Available methods include: __init__, find_property, get_bounding_box, get_entity_renderer_key, get_property, remove_property, set_property, to_mesh.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: center, direction, excluded, height, name, parent_node, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
shape | 'Profile' | Read/Write | Gets or sets the shape. |
direction | 'Vector3' | Read/Write | Gets or sets the direction. |
height | float | Read/Write | Gets or sets the height. |
slices | int | Read/Write | Gets or sets the slices. |
center | bool | Read/Write | Gets or sets the center. |
twist_offset | 'Vector3' | Read/Write | Gets or sets the twist offset. |
twist | float | Read/Write | Gets or sets the twist. |
parent_nodes | List['Node'] | Read | Gets the parent nodes. |
parent_node | Optional['Node'] | Read/Write | Gets or sets the parent node. |
excluded | bool | Read/Write | Gets or sets the excluded. |
scene | `` | Read/Write | Gets or sets the scene. |
name | str | Read/Write | Gets or sets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
__init__(name: str, shape: 'Profile', height: float) | Calls init(name, shape, height) on this LinearExtrusion instance. |
to_mesh() → 'Mesh' | Not implemented in the FOSS edition — throws at runtime. Returns a Mesh object representing the extruded geometry |
__init__(name: str) | Calls init(name) on this LinearExtrusion instance. |
get_bounding_box() → BoundingBox | Not implemented in the FOSS edition — throws at runtime. Returns the bounding box. |
get_entity_renderer_key() | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |
find_property(property_name: str) | Calls find_property(property_name) on this LinearExtrusion instance. |
get_property(property: str) | Calls get_property(property) on this LinearExtrusion instance. |
set_property(property: str, value) | Sets the property value. |
remove_property(property) | Calls remove_property(property) on this LinearExtrusion instance. |