Sphere
סקירה כללית
Sphere היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ-: Primitive.
מחלקה זו מגדירה 16 שיטות עבור אובייקטי Sphere בתוכניות 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_segments, name, ו-13 נוספים.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
width_segments | int | קריאה/כתיבה | מקבל או מגדיר את מקטעי הרוחב. |
height_segments | int | קריאה/כתיבה | מקבל או מגדיר את מקטעי הגובה. |
phi_start | float | קריאה/כתיבה | מקבל או מגדיר את phi start. |
phi_length | float | קריאה/כתיבה | מקבל או מגדיר את האורך של phi. |
theta_start | float | קריאה/כתיבה | מקבל או מגדיר את theta start. |
theta_length | float | קריאה/כתיבה | מקבל או מגדיר את אורך ה-theta. |
radius | 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, radius: float, width_segments: int, height_segments: int, phi_start: float, phi_length: float, theta_start: float, theta_length: float) | Calls init(name, radius, width_segments, height_segments, phi_start, phi_length, theta_start, theta_length) במופע זה של Sphere. |
to_mesh() | קורא ל-to_mesh במופע ה-Sphere הזה. |
__init__(name: str) | Calls init(name) במופע ה-Sphere הזה. |
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) במופע ה-Sphere הזה. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | קורא ל-create_element_uv(uv_mapping, mapping_mode, reference_mode) במופע ה-Sphere הזה. |
add_element(element: 'VertexElement') | קורא ל-add_element(element) במופע ה-Sphere הזה. |
get_element(element_type: 'VertexElementType') | קורא ל-get_element(element_type) במופע ה-Sphere הזה. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | קורא ל-get_vertex_element_of_uv(texture_mapping) במופע ה-Sphere הזה. |
remove_property(property) | קורא remove_property(property) במופע זה של Sphere. |
remove_property(property_name: str) | קורא remove_property(property_name) במופע זה של Sphere. |
get_property(property: str) | קורא get_property(property) במופע זה של Sphere. |
set_property(property: str, value) | מגדיר את ערך המאפיין. |
find_property(property: str) | קורא ל-find_property(property) במופע ה-Sphere הזה. |
get_bounding_box() | מחזיר את תיבת הגבול. |
get_entity_renderer_key() | לא ממומש בגרסת ה-FOSS — זורק בזמן ריצה. מחזיר את מפתח הרינדור של הישות. |