commit 97d2f701eac12639e4474f790792974e60117ca9
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Sun Mar 8 01:14:41 2020 +0000

    Minor.

diff --git a/src/main/java/org/distorted/object/RubikObject.java b/src/main/java/org/distorted/object/RubikObject.java
index 25baf97e..092b4964 100644
--- a/src/main/java/org/distorted/object/RubikObject.java
+++ b/src/main/java/org/distorted/object/RubikObject.java
@@ -131,7 +131,7 @@ public abstract class RubikObject extends DistortedNode
     final Static4D[] maps = new Static4D[numFaces];
     final float ratio = 1.0f/(numFaces+1);
 
-    if( 2*ROTATION_AXIS.length == numFaces )
+    if( 2*ROTATION_AXIS.length == numFaces )  // i.e. there are faces on both ends of the axis (cube)
       {
       for(int i=0; i<numFaces; i++)
         {
@@ -139,7 +139,7 @@ public abstract class RubikObject extends DistortedNode
         maps[i] = new Static4D( (belongs?i:6)*ratio, 0.0f, ratio, 1.0f);
         }
       }
-    else if( ROTATION_AXIS.length == numFaces )
+    else if( ROTATION_AXIS.length == numFaces )  // just a single face on the right end of an axis (pyraminx)
       {
       for(int i=0; i<numFaces; i++)
         {
@@ -152,6 +152,13 @@ public abstract class RubikObject extends DistortedNode
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
+// Cast centers of all Cubits on the first rotation Axis and compute the leftmost and rightmost
+// one. From there compute the 'start' (i.e. the leftmost) and 'step' (i.e. distance between two
+// consecutive).
+// it is assumed that other rotation axis have the same 'start' and 'step' - this is the case with
+// the Cube and the Pyraminx.
+// Start and Step are then needed to compute which rotation row (with respect to a given axis) a
+// given Cubit belongs to.
 
   private void computeStartAndStep(Static3D[] pos)
     {
diff --git a/src/main/java/org/distorted/object/RubikPyraminx.java b/src/main/java/org/distorted/object/RubikPyraminx.java
index d95e24bf..8f17b559 100644
--- a/src/main/java/org/distorted/object/RubikPyraminx.java
+++ b/src/main/java/org/distorted/object/RubikPyraminx.java
@@ -119,7 +119,27 @@ public class RubikPyraminx extends RubikObject
 
   void createFaceTexture(Canvas canvas, Paint paint, int face)
     {
-
+    /*
+    InputStream is = mView.getContext().getResources().openRawResource(R.raw.pyraminx);
+    Bitmap bitmap;
+
+    try
+      {
+      bitmap = BitmapFactory.decodeStream(is);
+      }
+    finally
+      {
+      try
+        {
+        is.close();
+        }
+      catch(IOException e) { }
+      }
+
+    paint.setColor(FACE_COLORS[face]);
+    canvas.drawRect(face*TEXTURE_HEIGHT,0,(face+1)*TEXTURE_HEIGHT,TEXTURE_HEIGHT,paint);
+    canvas.drawBitmap(bitmap,face*TEXTURE_HEIGHT,0,null);
+    */
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
