Bone
ภาพรวม
Bone เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: A3DObject.
ออบเจกต์ Bone เปิดเผยการจัดการน้ำหนักผ่านเมธอด get_weight และ set_weight, ทำให้สามารถคำนวณการสกินได้.
คลาสนี้ประกาศ 7 เมธอดสำหรับออบเจกต์ Bone ในโปรแกรม Python. เมธอดที่มีรวมถึง: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.3D FOSS สำหรับ Python. คุณสมบัติ: bone_transform, link_mode, name, node, properties, transform, และอีก 1 รายการ.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
link_mode | 'BoneLinkMode' | อ่าน/เขียน | รับหรือกำหนดโหมดการเชื่อมต่อ. |
weight_count | int | อ่าน | รับจำนวนน้ำหนัก. |
transform | 'Matrix4' | อ่าน/เขียน | รับหรือกำหนดการแปลง. |
bone_transform | 'Matrix4' | อ่าน/เขียน | รับหรือกำหนดการแปลงของกระดูก. |
node | 'Node' | อ่าน/เขียน | รับหรือกำหนดโหนด. |
name | str | อ่าน/เขียน | รับหรือกำหนดชื่อ. |
properties | PropertyCollection | อ่าน | รับคุณสมบัติ. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
__init__(name: str) | Calls init(name) บนอินสแตนซ์ Bone นี้. |
get_weight(index: int) → float | เรียก get_weight(index) บนอินสแตนซ์ Bone นี้. |
set_weight(index: int, weight: float) | ตั้งค่าค่าน้ำหนัก. |
find_property(property_name: str) | เรียก find_property(property_name) บนอินสแตนซ์ Bone นี้. |
get_property(property: str) | เรียก get_property(property) บนอินสแตนซ์ Bone นี้. |
set_property(property: str, value) | ตั้งค่าค่าคุณสมบัติ. |
remove_property(property) | เรียก remove_property(property) บนอินสแตนซ์ Bone นี้. |