Box
סקירה כללית
Box היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ: Primitive.
מחלקה זו מכריזה על 16 מתודות עבור אובייקטי Box בתוכניות 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, height, height_segments, ו-12 נוספים.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
length_segments | int | קריאה/כתיבה | מקבל או מגדיר את מקטעי האורך. |
width_segments | int | קריאה/כתיבה | מקבל או מגדיר את מקטעי הרוחב. |
height_segments | int | קריאה/כתיבה | מקבל או מגדיר את מקטעי הגובה. |
length | float | קריאה/כתיבה | מקבל או מגדיר את האורך. |
width | float | קריאה/כתיבה | מקבל או מגדיר את הרוחב. |
height | float | קריאה/כתיבה | מקבל או מגדיר את הגובה. |
cast_shadows | bool | קריאה/כתיבה | מקבל או מגדיר את הצללים המוטלים. |
receive_shadows | bool | קריאה/כתיבה | מקבל או מגדיר את קבלת הצללים. |
visible | bool | קריאה/כתיבה | מקבל או מגדיר את visible. |
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, length: float, width: float, height: float, length_segments: int, width_segments: int, height_segments: int) | Calls init(name, length, width, height, length_segments, width_segments, height_segments) על מופע Box זה. |
to_mesh() → 'Mesh' | קורא to_mesh על מופע Box זה. |
__init__(name: str) | Calls init(name) על מופע Box זה. |
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) על מופע ה-Box הזה. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | קורא ל-create_element_uv(uv_mapping, mapping_mode, reference_mode) על מופע ה-Box הזה. |
add_element(element: 'VertexElement') | קורא ל-add_element(element) על מופע ה-Box הזה. |
get_element(element_type: 'VertexElementType') | קורא ל-get_element(element_type) על מופע ה-Box הזה. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | מבצע קריאה ל-get_vertex_element_of_uv(texture_mapping) על מופע ה-Box הזה. |
remove_property(property) | מבצע קריאה ל-remove_property(property) על מופע ה-Box הזה. |
remove_property(property_name: str) | מבצע קריאה ל-remove_property(property_name) על מופע ה-Box הזה. |
get_property(property: str) | מבצע קריאה ל-get_property(property) על מופע ה-Box הזה. |
set_property(property: str, value) | מגדיר את ערך המאפיין. |
find_property(property: str) | קורא ל-find_property(property) על מופע Box זה. |
get_bounding_box() | מחזיר את תיבת הגבול. |
get_entity_renderer_key() | לא מיושם בגרסת ה-FOSS — זורק בזמן ריצה. מחזיר את מפתח הרנדר של הישות. |