Cylinder
סקירה כללית
Cylinder היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ: Primitive.
Cylinder.to_mesh() ממירה את הפרימיטיב של הצילינדר לאובייקט Mesh לעיבוד נוסף.
מחלקה זו מכריזה על 16 שיטות עבור אובייקטי Cylinder בתוכניות Python. השיטות הזמינות כוללות: __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, ו-2 שיטות נוספות. כל החברים הציבוריים נגישים לכל יישום Python לאחר התקנת החבילה Aspose.3D FOSS עבור Python. מאפיינים: cast_shadows, control_points, deformers, excluded, generate_fan_cylinder, height, ו-19 נוספים.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
offset_bottom | `` | קריאה/כתיבה | מקבל או מגדיר את offset bottom. |
offset_top | `` | קריאה/כתיבה | מקבל או מגדיר את ההזחה העליונה. |
generate_fan_cylinder | bool | קריאה/כתיבה | מקבל או מגדיר את גליל המאוורר שנוצר. |
shear_bottom | `` | קריאה/כתיבה | מקבל או מגדיר את החיתוך התחתון. |
shear_top | `` | קריאה/כתיבה | מקבל או מגדיר את shear top. |
radius_top | float | קריאה/כתיבה | מקבל או מגדיר את radius top. |
radius_bottom | float | קריאה/כתיבה | מקבל או מגדיר את רדיוס התחתון. |
height | float | קריאה/כתיבה | מקבל או מגדיר את הגובה. |
radial_segments | int | קריאה/כתיבה | מקבל או מגדיר את המקטעים הרדיאליים. |
height_segments | int | קריאה/כתיבה | מקבל או מגדיר את מקטעי הגובה. |
open_ended | bool | קריאה/כתיבה | מקבל או מגדיר את הקצה הפתוח. |
theta_start | float | קריאה/כתיבה | מקבל או מגדיר את תחילת theta. |
theta_length | float | קריאה/כתיבה | מקבל או מגדיר את אורך ה-theta. |
cast_shadows | bool | קריאה/כתיבה | מקבל או מגדיר את הצללים המוקרנים. |
receive_shadows | bool | קריאה/כתיבה | מקבל או מגדיר את קבלת הצללים. |
visible | bool | קריאה/כתיבה | מקבל או מגדיר את הנראות. |
deformers | List['Deformer'] | קריאה | מקבל את המעוותים. |
vertex_elements | List['VertexElement'] | קריאה | מקבל את אלמנטי הקודקוד. |
control_points | 'ArrayListAdapter[Vector4]' | קריאה | מקבל את נקודות הבקרה. |
parent_nodes | List['Node'] | קריאה | מקבל את צמתים ההורים. |
parent_node | Optional['Node'] | קריאה/כתיבה | מקבל או מגדיר את צומת האב. |
excluded | bool | קריאה/כתיבה | מקבל או מגדיר את המושמט. |
scene | `` | קריאה/כתיבה | מקבל או מגדיר את הסצנה. |
name | str | קריאה/כתיבה | מקבל או מגדיר את השם. |
properties | PropertyCollection | קריאה | מקבל את המאפיינים. |
שיטות
| חתימה | תיאור |
|---|---|
__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) על מופע Cylinder זה. |
to_mesh() | ממיר את הפרימיטיב cylinder לאובייקט Mesh לצורך עיבוד נוסף |
__init__(name: str) | Calls init(name) על מופע Cylinder זה. |
get_deformers(deformer_type: type) → List['Deformer'] | מקבל את כל ה-deformers מהסוג המצוין, או את כל ה-deformers אם לא צויין סוג. |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | קורא ל-create_element(element_type, mapping_mode, reference_mode) על מופע Cylinder זה. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | קורא ל-create_element_uv(uv_mapping, mapping_mode, reference_mode) על מופע Cylinder הזה. |
add_element(element: 'VertexElement') | קורא ל-add_element(element) על מופע Cylinder הזה. |
get_element(element_type: 'VertexElementType') | קורא ל-get_element(element_type) על מופע Cylinder הזה. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | קורא ל-get_vertex_element_of_uv(texture_mapping) על מופע Cylinder הזה. |
remove_property(property) | קורא ל-remove_property(property) על מופע Cylinder זה. |
remove_property(property_name: str) | קורא ל-remove_property(property_name) על מופע Cylinder זה. |
get_property(property: str) | קורא ל-get_property(property) על מופע Cylinder זה. |
set_property(property: str, value) | מגדיר את ערך המאפיין. |
find_property(property: str) | קורא ל-find_property(property) על מופע Cylinder זה. |
get_bounding_box() | מחזיר את תיבת הגבול. |
get_entity_renderer_key() | לא מיושם בגרסת ה-FOSS — נזרק בזמן ריצה. מחזיר את מפתח רינדור הישות. |