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_areaVector2קריאה/כתיבהמקבל את שטח הבסיס.
top_areaVector2קריאה/כתיבהמקבל את השטח העליון.
bottom_offsetVector3קריאה/כתיבהמקבל את הסטת התחתית.
heightfloatקריאה/כתיבהמקבל את הגובה.
cast_shadowsboolקריאה/כתיבהמקבל או מגדיר את הצללים המוקרנים.
receive_shadowsboolקריאה/כתיבהמקבל או מגדיר את קבלת הצללים.
visibleboolקריאה/כתיבהמקבל או מגדיר את הנראות.
deformersList['Deformer']קריאהמחזיר את המעוותים.
vertex_elementsList['VertexElement']קריאהמקבל את אלמנטי הקודקוד.
control_points'ArrayListAdapter[Vector4]'קריאהמקבל את נקודות הבקרה.
parent_nodesList['Node']קריאהמקבל את צמתי ההורה.
parent_nodeOptional['Node']קריאה/כתיבהמקבל או מגדיר את צומת האב.
excludedboolקריאה/כתיבהמקבל או מגדיר את המוחרג.
scene``קריאה/כתיבהמקבל או מגדיר את הסצנה.
namestrקריאה/כתיבהמקבל או מגדיר את השם.
propertiesPropertyCollectionקריאהמקבל את המאפיינים.

שיטות

חתימהתיאור
__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.

ראה גם

 עברית