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_countintอ่านรับจำนวนน้ำหนัก.
transform'Matrix4'อ่าน/เขียนรับหรือกำหนดการแปลง.
bone_transform'Matrix4'อ่าน/เขียนรับหรือกำหนดการแปลงของกระดูก.
node'Node'อ่าน/เขียนรับหรือกำหนดโหนด.
namestrอ่าน/เขียนรับหรือกำหนดชื่อ.
propertiesPropertyCollectionอ่านรับคุณสมบัติ.

วิธีการ

ลายเซ็นคำอธิบาย
__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 นี้.

ดูเพิ่มเติม

 ภาษาไทย