RectangleShape

RectangleShape

סקירה כללית

RectangleShape היא מחלקה ב-Aspose.3D FOSS עבור Python. יורשת מ: ParameterizedProfile.

פרופיל מלבן תואם ל-IFC.

המחלקה הזו מגדירה 9 שיטות עבור אובייקטים של RectangleShape בתוכניות Python. השיטות הזמינות כוללות: __init__, find_property, get_bounding_box, get_entity_renderer_key, get_extent, get_property, remove_property, set_property. כל החברים הציבוריים נגישים לכל יישום Python לאחר התקנת חבילת Aspose.3D FOSS עבור Python. מאפיינים: depth, excluded, name, parent_node, parent_nodes, properties, ועוד 2.

מאפיינים

שםסוגגישהתיאור
widthfloatקריאה/כתיבהמקבל או מגדיר את הרוחב.
depthfloatקריאה/כתיבהמקבל או מגדיר את העומק.
parent_nodesList['Node']קריאהמקבל את צמתי ההורה.
parent_nodeOptional['Node']קריאה/כתיבהמקבל או מגדיר את צומת האב.
excludedboolקריאה/כתיבהמקבל או מגדיר את excluded.
scene``קריאה/כתיבהמקבל או מגדיר את הסצנה.
namestrקריאה/כתיבהמקבל או מגדיר את השם.
propertiesPropertyCollectionקריאהמקבל את המאפיינים.

שיטות

חתימהתיאור
__init__(name: str, width: float, depth: float)Calls init(name, width, depth) במופע RectangleShape זה.
get_extent() → 'Vector2'מקבל את ההיקף בממד x ו-y.
__init__(name: str)Calls init(name) במופע RectangleShape זה.
get_entity_renderer_key()מחזיר את מפתח ה-entity renderer.
get_bounding_box() → BoundingBoxלא מיושם במהדורת FOSS — נזרק בזמן ריצה. מחזיר את תיבת הגבול.
find_property(property_name: str)קורא ל-find_property(property_name) על המופע RectangleShape הזה.
get_property(property: str)קורא ל-get_property(property) על המופע RectangleShape הזה.
set_property(property: str, value)מגדיר את ערך המאפיין.
remove_property(property)קורא ל-remove_property(property) על המופע RectangleShape הזה.

ראה גם

 עברית