com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class MorphTargetDeformer



  • 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(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(Geometry 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(Geometry 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