LinearExtrusion

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

NameTypeAccessDescription
shape'Profile'Read/WriteGets or sets the shape.
direction'Vector3'Read/WriteGets or sets the direction.
heightfloatRead/WriteGets or sets the height.
slicesintRead/WriteGets or sets the slices.
centerboolRead/WriteGets or sets the center.
twist_offset'Vector3'Read/WriteGets or sets the twist offset.
twistfloatRead/WriteGets or sets the twist.
parent_nodesList['Node']ReadGets the parent nodes.
parent_nodeOptional['Node']Read/WriteGets or sets the parent node.
excludedboolRead/WriteGets or sets the excluded.
scene``Read/WriteGets or sets the scene.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
__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()BoundingBoxNot 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.

See Also