Pyramid
סקירה כללית
Pyramid היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ: Primitive.
פירמידה פרמטרית.
מחלקה זו מכריזה על 16 שיטות עבור אובייקטים מסוג Pyramid בתוכניות 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. מאפיינים: bottom_area, bottom_offset, cast_shadows, control_points, deformers, excluded, ו-10 נוספים.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
bottom_area | Vector2 | קריאה/כתיבה | מקבל את שטח הבסיס. |
top_area | Vector2 | קריאה/כתיבה | מקבל את השטח העליון. |
bottom_offset | Vector3 | קריאה/כתיבה | מקבל את הסטת התחתית. |
height | float | קריאה/כתיבה | מקבל את הגובה. |
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, xbottom: float, ybottom: float, xtop: float, ytop: float, height: float) | קונסטרוקטור של Pyramid. |
to_mesh() → 'Mesh' | המר את האובייקט הנוכחי לרשת. |
__init__(name: str) | Calls init(name) על מופע ה-Pyramid הזה. |
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) במופע Pyramid זה. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | קורא ל-create_element_uv(uv_mapping, mapping_mode, reference_mode) במופע Pyramid זה. |
add_element(element: 'VertexElement') | קורא ל-add_element(element) במופע Pyramid זה. |
get_element(element_type: 'VertexElementType') | קורא ל-get_element(element_type) במופע Pyramid זה. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | מבצע קריאה ל get_vertex_element_of_uv(texture_mapping) במופע Pyramid זה. |
remove_property(property) | קורא remove_property(property) על מופע Pyramid זה. |
remove_property(property_name: str) | קורא remove_property(property_name) על מופע Pyramid זה. |
get_property(property: str) | קורא get_property(property) על מופע Pyramid זה. |
set_property(property: str, value) | מגדיר את ערך המאפיין. |
find_property(property: str) | קורא find_property(property) על מופע Pyramid זה. |
get_bounding_box() | מחזיר את תיבת הגבול. |
get_entity_renderer_key() | לא מיושם במהדורת ה-FOSS — נזרק בזמן ריצה. מחזיר את המפתח של entity renderer key. |