commit 226c8cfac2ab1a444d97458034a0129ea57e6c3e
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Fri May 29 16:48:05 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/objects/RubikCube.java b/src/main/java/org/distorted/objects/RubikCube.java
index 2998e716..21845bc9 100644
--- a/src/main/java/org/distorted/objects/RubikCube.java
+++ b/src/main/java/org/distorted/objects/RubikCube.java
@@ -194,17 +194,17 @@ class RubikCube extends RubikObject
       Static1D dRad  = new Static1D(1);
 
       VertexEffectMove   effect0 = new VertexEffectMove(new Static3D(0,0,+0.5f));
-      effect0.setMeshAssociation(63);  // all 6 sides
+      effect0.setMeshAssociation(-1,63);  // all 6 sides
       VertexEffectRotate effect1 = new VertexEffectRotate( angle180, axisX, center );
-      effect1.setMeshAssociation(32);  // back
+      effect1.setMeshAssociation(-1,32);  // back
       VertexEffectRotate effect2 = new VertexEffectRotate( angle90 , axisX, center );
-      effect2.setMeshAssociation(8);  // bottom
+      effect2.setMeshAssociation(-1, 8);  // bottom
       VertexEffectRotate effect3 = new VertexEffectRotate( angle270, axisX, center );
-      effect3.setMeshAssociation(4);  // top
+      effect3.setMeshAssociation(-1, 4);  // top
       VertexEffectRotate effect4 = new VertexEffectRotate( angle270, axisY, center );
-      effect4.setMeshAssociation(2);  // left
+      effect4.setMeshAssociation(-1, 2);  // left
       VertexEffectRotate effect5 = new VertexEffectRotate( angle90 , axisY, center );
-      effect5.setMeshAssociation(1);  // right
+      effect5.setMeshAssociation(-1, 1);  // right
 
       VertexEffectDeform effect6 = new VertexEffectDeform(dVec0, dRad, dCen0, dReg);
       VertexEffectDeform effect7 = new VertexEffectDeform(dVec1, dRad, dCen1, dReg);
diff --git a/src/main/java/org/distorted/objects/RubikPyraminx.java b/src/main/java/org/distorted/objects/RubikPyraminx.java
index b1d3a9cf..7cc9dbfd 100644
--- a/src/main/java/org/distorted/objects/RubikPyraminx.java
+++ b/src/main/java/org/distorted/objects/RubikPyraminx.java
@@ -278,10 +278,10 @@ public class RubikPyraminx extends RubikObject
 
     VertexEffectSink   effect12= new VertexEffectSink( new Static1D(1.3f), center, region );
 
-    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);
