Bone

סקירה כללית

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

אובייקטי עצם חושפים ניהול משקל באמצעות השיטות get_weight ו-set_weight, ומאפשרים חישובי סקינינג.

מחלקה זו מגדירה 7 שיטות עבור אובייקטי עצם בתוכניות 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, ועוד אחד.

מאפיינים

שםסוגגישהתיאור
link_mode'BoneLinkMode'קריאה/כתיבהמקבל או מגדיר את מצב הקישור.
weight_countintקריאהמקבל את ספירת המשקל.
transform'Matrix4'קריאה/כתיבהמקבל או מגדיר את הטרנספורם.
bone_transform'Matrix4'קריאה/כתיבהמקבל או מגדיר את ה-Transform של העצם.
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 זה.

ראה גם

 עברית