Bone
개요
Bone은 Aspose.3D FOSS의 Python용 클래스입니다. 상속 대상: A3DObject.
Bone 객체는 get_weight 및 set_weight 메서드를 통해 무게 관리 기능을 제공하여 스키닝 계산을 가능하게 합니다.
이 클래스는 Python 프로그램의 Bone 객체를 위해 7개의 메서드를 선언합니다. 사용 가능한 메서드: __init__, find_property, get_property, get_weight, remove_property, set_property, set_weight. 모든 public 멤버는 Aspose.3D FOSS for Python 패키지를 설치한 후 any Python 애플리케이션에서 접근할 수 있습니다. 속성: bone_transform, link_mode, name, node, properties, transform, 그리고 1개 더.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
link_mode | 'BoneLinkMode' | 읽기/쓰기 | 링크 모드를 가져오거나 설정합니다. |
weight_count | int | 읽기 | 가중치 개수를 가져옵니다. |
transform | 'Matrix4' | 읽기/쓰기 | transform을 가져오거나 설정합니다. |
bone_transform | 'Matrix4' | 읽기/쓰기 | 뼈 변환을 가져오거나 설정합니다. |
node | 'Node' | 읽기/쓰기 | 노드를 가져오거나 설정합니다. |
name | str | 읽기/쓰기 | 이름을 가져오거나 설정합니다. |
properties | PropertyCollection | 읽기 | 속성을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
__init__(name: str) | Calls init(name) 은(는) 이 Bone 인스턴스에서. |
get_weight(index: int) → float | 이 Bone 인스턴스에서 get_weight(index)를 호출합니다. |
set_weight(index: int, weight: float) | 가중치 값을 설정합니다. |
find_property(property_name: str) | 이 Bone 인스턴스에서 find_property(property_name)를 호출합니다. |
get_property(property: str) | 이 Bone 인스턴스에서 get_property(property)를 호출합니다. |
set_property(property: str, value) | 속성 값을 설정합니다. |
remove_property(property) | 이 Bone 인스턴스에서 remove_property(property)를 호출합니다. |