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 key.
get_bounding_box() → BoundingBoxไม่ได้ทำในรุ่น FOSS — จะโยนข้อผิดพลาดขณะรันไทม์. คืนค่า bounding box.
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 นี้.

ดูเพิ่มเติม

 ภาษาไทย