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

NameTypeAccessDescription
linkModeBoneLinkModeReadA bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure.
weightCountintReadGets the count of weight, this is automatically extended by setWeight(int, double).
transformMatrix4ReadGets the transform matrix of the node containing the bone.
boneTransformMatrix4ReadGets the transform matrix of the bone.
nodeNodeReadGets the node.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Bone()Initializes a new instance of the Bone class.
Bone(name: String)Initializes a new instance of the Bone class.
getLinkMode()BoneLinkModeA 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)doubleGets the weight for control point specified by index.
setWeight(index: int, weight: double)Sets the weight for control point specified by index.
getWeightCount()intGets the count of weight, this is automatically extended by setWeight(int, double).
getTransform()Matrix4Gets the transform matrix of the node containing the bone.
setTransform(value: Matrix4)Sets the transform matrix of the node containing the bone.
getBoneTransform()Matrix4Gets the transform matrix of the bone.
setBoneTransform(value: Matrix4)Sets the transform matrix of the bone.
getNode()NodeGets the node.
setNode(value: Node)Sets the node.
get(index: int)doubleGets 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()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectCalls getProperty(name) on this Bone instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Bone instance.
removeProperty(property: Property)booleanCalls removeProperty(property) on this Bone instance.

See Also

 English