Bone
Overview
Bone is a class in Aspose.3D FOSS for .NET.
Inherits from: A3DObject, INamedObject.
A bone defines the subset of the geometry’s control point, and defined blend weight for each control point. The object cannot be used directly, a instance is used to deform the geometry, and comes with a set of bones, each bone linked to a node. NOTE: A control point of a geometry can be bounded to more than one Bones.
This class provides 8 methods for working with Bone objects in .NET programs.
Available methods include: A3DObject, Bone, FindProperty, GetProperty, GetWeight, RemoveProperty, SetProperty, SetWeight.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: BoneTransform, LinkMode, Name, Node, Properties, Transform, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
LinkMode | BoneLinkMode | Read/Write | Gets or sets the link mode. |
WeightCount | int | Read | Gets the weight count. |
Transform | Matrix4 | Read/Write | Gets or sets the transform. |
BoneTransform | Matrix4 | Read/Write | Gets or sets the bone transform. |
Node | Node | Read/Write | Gets or sets the node. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
Bone(name: string) | |
Bone() | |
GetWeight(index: int) | Gets the weight for control point specified by index |
SetWeight(index: int, weight: double) | Sets the weight for control point specified by index |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |