Bone
Overview
Bone is a class in Aspose.3D FOSS for Java.
Inherits from: A3DObject.
A bone defines the subset of the geometry’s control point, and defined blend weight for each control point.
This class provides 25 methods for working with Bone objects in Java programs.
Available methods include: A3DObject, Bone, findProperty, get, getBoneTransform, getLinkMode, getName, getNode, getProperties, getProperty, getTransform, getWeight, and 10 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: boneTransform, linkMode, name, node, properties, transform, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
linkMode | BoneLinkMode | Read | A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure. |
weightCount | int | Read | Gets the count of weight, this is automatically extended by setWeight(int, double). |
transform | Matrix4 | Read | Gets the transform matrix of the node containing the bone. |
boneTransform | Matrix4 | Read | Gets the transform matrix of the bone. |
node | Node | Read | Gets the node. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
Bone() | Initializes a new instance of the Bone class. |
Bone(name: String) | Initializes a new instance of the Bone class. |
getLinkMode() → BoneLinkMode | A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure. |
setLinkMode(value: BoneLinkMode) | A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure. |
getWeight(index: int) → double | Gets the weight for control point specified by index. |
setWeight(index: int, weight: double) | Sets the weight for control point specified by index. |
getWeightCount() → int | Gets the count of weight, this is automatically extended by setWeight(int, double). |
getTransform() → Matrix4 | Gets the transform matrix of the node containing the bone. |
setTransform(value: Matrix4) | Sets the transform matrix of the node containing the bone. |
getBoneTransform() → Matrix4 | Gets the transform matrix of the bone. |
setBoneTransform(value: Matrix4) | Sets the transform matrix of the bone. |
getNode() → Node | Gets the node. |
setNode(value: Node) | Sets the node. |
get(index: int) → double | Gets or sets the weight at the specified index. |
set(index: int, value: double) | Sets the blend weight of specified control point. |
A3DObject() | Calls A3DObject on this Bone instance. |
A3DObject(name: String) | A bone defines the subset of the geometry’s control point, and defined blend weight for each control point. The Bone object cannot be used directly, a SkinDeformer instance is used to deform the geometry, and SkinDeformer 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. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Initializes a new instance of the Bone class. |
getProperty(name: String) → Object | Calls getProperty(name) on this Bone instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Bone instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Bone instance. |