Class MorphTargetDeformer

  • All Implemented Interfaces:
    INamedObject

    public class MorphTargetDeformer
    extends Deformer
    MorphTargetDeformer provides per-vertex animation. MorphTargetDeformer organize all targets via MorphTargetChannel, each channel can organize multiple targets. A common use of morph target deformer is to apply facial expression to a character. More details can be found at https://en.wikipedia.org/wiki/Morph_target_animation
    • Constructor Detail

      • MorphTargetDeformer

        public MorphTargetDeformer​(java.lang.String name)
        Initializes a new instance of the MorphTargetDeformer class.
        Parameters:
        name - Name.
      • MorphTargetDeformer

        public MorphTargetDeformer()
        Initializes a new instance of the MorphTargetDeformer class.
    • Method Detail

      • get

        public double get​(Shape target)
        Gets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.
        Parameters:
        target - Target geometry
        Returns:
        Weight
      • set

        public void set​(Shape target,
                        double value)
        Sets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.
        Parameters:
        target - Target geometry
        value - New value
      • getChannels

        public java.util.List<MorphTargetChannel> getChannels()
        Gets all channels contained in this deformer