Project

General

Profile

« Previous | Next » 

Revision 6ebdbbf1

Added by Leszek Koltunski over 7 years ago

DEFORM: add support for Regions

View differences:

src/main/java/org/distorted/library/DistortedObject.java
746 746
    return mV.add(EffectNames.DISTORT, vector, center, null);
747 747
    }
748 748

  
749
///////////////////////////////////////////////////////////////////////////////////////////////////
750
/**
751
 * Deform the shape of the whole Object with a (possibly changing in time) vector of force applied to
752
 * a (possibly changing in time) point on the Object.
753
 *
754
 * @param vector Vector of force that deforms the shape of the whole Object.
755
 * @param center 3-dimensional Data that, at any given time, returns the Center of the Effect.
756
 * @param region Region that masks the Effect.
757
 * @return       ID of the effect added, or -1 if we failed to add one.
758
 */
759
  public long deform(Data3D vector, Data3D center, Data4D region)
760
    {
761
    return mV.add(EffectNames.DEFORM, vector, center, region);
762
    }
763

  
749 764
///////////////////////////////////////////////////////////////////////////////////////////////////
750 765
/**
751 766
 * Deform the shape of the whole Object with a (possibly changing in time) vector of force applied to

Also available in: Unified diff