Package com.aspose.threed
Class Bone
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Bone
-
public class Bone extends A3DObject
A bone defines the subset of the geometry's control point, and defined blend weight for each control point. TheBone
object cannot be used directly, aSkinDeformer
instance is used to deform the geometry, andSkinDeformer
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.
-
-
Method Summary
Modifier and Type Method Description double
get(int index)
Gets the blend weight of specified control pointMatrix4
getBoneTransform()
Gets the transform matrix of the bone.Node
getNode()
Gets the node.Matrix4
getTransform()
Gets the transform matrix of the node containing the bone.double
getWeight(int index)
Gets the weight for control point specified by indexint
getWeightCount()
Gets the count of weight, this is automatically extended bysetWeight(int, double)
void
set(int index, double value)
Sets the blend weight of specified control pointvoid
setBoneTransform(Matrix4 value)
Sets the transform matrix of the bone.void
setNode(Node value)
Sets the node.void
setTransform(Matrix4 value)
Sets the transform matrix of the node containing the bone.void
setWeight(int index, double weight)
Sets the weight for control point specified by index-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Method Detail
-
get
public double get(int index)
Gets the blend weight of specified control point- Parameters:
index
-- Returns:
- The weight
-
set
public void set(int index, double value)
Sets the blend weight of specified control point- Parameters:
index
-value
- New value
-
getWeight
public double getWeight(int index)
Gets the weight for control point specified by index- Parameters:
index
- Control point's index- Returns:
- the weight at specified index, or 0 if the index is invalid
-
setWeight
public void setWeight(int index, double weight)
Sets the weight for control point specified by index- Parameters:
index
- Control point's indexweight
- New weight
-
getWeightCount
public int getWeightCount()
Gets the count of weight, this is automatically extended bysetWeight(int, double)
-
getTransform
public Matrix4 getTransform()
Gets the transform matrix of the node containing the bone.
-
setTransform
public void setTransform(Matrix4 value)
Sets the transform matrix of the node containing the bone.- Parameters:
value
- New value
-
getBoneTransform
public Matrix4 getBoneTransform()
Gets the transform matrix of the bone.
-
setBoneTransform
public void setBoneTransform(Matrix4 value)
Sets the transform matrix of the bone.- Parameters:
value
- New value
-
getNode
public Node getNode()
Gets the node. The bone node is the bone which skin attached to, theSkinDeformer
will use bone node to influence the displacement of the control points. Bone node usually has aSkeleton
attached, but it's not required. AttachedSkeleton
is usually used by DCC software to show skeleton to user.
-
setNode
public void setNode(Node value)
Sets the node. The bone node is the bone which skin attached to, theSkinDeformer
will use bone node to influence the displacement of the control points. Bone node usually has aSkeleton
attached, but it's not required. AttachedSkeleton
is usually used by DCC software to show skeleton to user.- Parameters:
value
- New value
-
-