commit 0e80d8a99a768e751ddc49a6a2b5a84a2714952b
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Fri May 29 16:48:04 2020 +0100

    Progress making it possible to apply Vertex Effects only to some Components of a Mesh.

diff --git a/src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java b/src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java
index 33857be..d9dc364 100644
--- a/src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java
+++ b/src/main/java/org/distorted/examples/meshjoin/MeshJoinRenderer.java
@@ -88,7 +88,7 @@ class MeshJoinRenderer implements GLSurfaceView.Renderer
 
       mSinkAssociation = 0;
       mSink = new VertexEffectSink( sink, center, new Static4D(0,0,0,0.75f) );
-      mSink.setMeshAssociation(mSinkAssociation);
+      mSink.setMeshAssociation(-1,mSinkAssociation);
 
       mEffects = new DistortedEffects();
       mEffects.apply( new MatrixEffectQuaternion(quatInt2, center) );
@@ -151,7 +151,7 @@ class MeshJoinRenderer implements GLSurfaceView.Renderer
       if( checked ) mSinkAssociation |= n;
       else          mSinkAssociation &= (15-n);
 
-      mSink.setMeshAssociation(mSinkAssociation);
+      mSink.setMeshAssociation(-1,mSinkAssociation);
       }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -267,10 +267,10 @@ class MeshJoinRenderer implements GLSurfaceView.Renderer
       VertexEffectDeform effect10= new VertexEffectDeform(dVec2, dRad, dCen2, dReg);
       VertexEffectDeform effect11= new VertexEffectDeform(dVec3, dRad, dCen3, dReg);
 
-      effect4.setMeshAssociation(14);  // apply to mesh[1], [2] and [3]
-      effect5.setMeshAssociation( 2);  // apply only to mesh[1]
-      effect6.setMeshAssociation( 4);  // apply only to mesh[2]
-      effect7.setMeshAssociation( 8);  // apply only to mesh[3]
+      effect4.setMeshAssociation(-1,14);  // apply to mesh[1], [2] and [3]
+      effect5.setMeshAssociation(-1, 2);  // apply only to mesh[1]
+      effect6.setMeshAssociation(-1, 4);  // apply only to mesh[2]
+      effect7.setMeshAssociation(-1, 8);  // apply only to mesh[3]
 
       result.apply(effect1);
       result.apply(effect2);
