com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class 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. 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.
    • Constructor Detail

      • Bone

        public Bone(String name)
        Initializes a new instance of the Bone class.
        Parameters:
        name - Name.
      • Bone

        public Bone()
        Initializes a new instance of the Bone class.
    • 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 index
        weight - New weight
      • getWeightCount

        public int getWeightCount()
        Gets the count of weight, this is automatically extended by setWeight(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, the SkinDeformer will use bone node to influence the displacement of the control points. Bone node usually has a Skeleton attached, but it's not required. Attached Skeleton 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, the SkinDeformer will use bone node to influence the displacement of the control points. Bone node usually has a Skeleton attached, but it's not required. Attached Skeleton is usually used by DCC software to show skeleton to user.
        Parameters:
        value - New value