Cylinder
Overview
Cylinder is a class in Aspose.3D FOSS for Python.
Inherits from: Primitive.
Cylinder.to_mesh() converts the cylinder primitive into a Mesh object for further processing.
This class declares 16 methods for Cylinder objects in Python programs.
Available methods include: __init__, add_element, create_element, create_element_uv, find_property, get_bounding_box, get_deformers, get_element, get_entity_renderer_key, get_property, get_vertex_element_of_uv, remove_property, and 2 additional methods.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: cast_shadows, control_points, deformers, excluded, generate_fan_cylinder, height, and 19 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
offset_bottom | `` | Read/Write | Gets or sets the offset bottom. |
offset_top | `` | Read/Write | Gets or sets the offset top. |
generate_fan_cylinder | bool | Read/Write | Gets or sets the generate fan cylinder. |
shear_bottom | `` | Read/Write | Gets or sets the shear bottom. |
shear_top | `` | Read/Write | Gets or sets the shear top. |
radius_top | float | Read/Write | Gets or sets the radius top. |
radius_bottom | float | Read/Write | Gets or sets the radius bottom. |
height | float | Read/Write | Gets or sets the height. |
radial_segments | int | Read/Write | Gets or sets the radial segments. |
height_segments | int | Read/Write | Gets or sets the height segments. |
open_ended | bool | Read/Write | Gets or sets the open ended. |
theta_start | float | Read/Write | Gets or sets the theta start. |
theta_length | float | Read/Write | Gets or sets the theta length. |
cast_shadows | bool | Read/Write | Gets or sets the cast shadows. |
receive_shadows | bool | Read/Write | Gets or sets the receive shadows. |
visible | bool | Read/Write | Gets or sets the visible. |
deformers | List['Deformer'] | Read | Gets the deformers. |
vertex_elements | List['VertexElement'] | Read | Gets the vertex elements. |
control_points | 'ArrayListAdapter[Vector4]' | Read | Gets the control points. |
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, radius_top: float, radius_bottom: float, height: float, radial_segments: int, height_segments: int, open_ended: bool, theta_start: float, theta_length: float) | Calls init(name, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended, theta_start, theta_length) on this Cylinder instance. |
to_mesh() | Converts the cylinder primitive into a Mesh object for further processing |
__init__(name: str) | Calls init(name) on this Cylinder instance. |
get_deformers(deformer_type: type) → List['Deformer'] | Gets all deformers of the specified type, or all deformers if no type is specified. |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | Calls create_element(element_type, mapping_mode, reference_mode) on this Cylinder instance. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | Calls create_element_uv(uv_mapping, mapping_mode, reference_mode) on this Cylinder instance. |
add_element(element: 'VertexElement') | Calls add_element(element) on this Cylinder instance. |
get_element(element_type: 'VertexElementType') | Calls get_element(element_type) on this Cylinder instance. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | Calls get_vertex_element_of_uv(texture_mapping) on this Cylinder instance. |
remove_property(property) | Calls remove_property(property) on this Cylinder instance. |
remove_property(property_name: str) | Calls remove_property(property_name) on this Cylinder instance. |
get_property(property: str) | Calls get_property(property) on this Cylinder instance. |
set_property(property: str, value) | Sets the property value. |
find_property(property: str) | Calls find_property(property) on this Cylinder instance. |
get_bounding_box() | Returns the bounding box. |
get_entity_renderer_key() | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |