commit a2398d6b346223977d7c9aa0dbc0d21aec680b3a
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Wed Dec 30 22:51:17 2020 +0100

    Progress with the Kilominx - shape of the mesh.

diff --git a/src/main/java/org/distorted/objects/FactoryCubit.java b/src/main/java/org/distorted/objects/FactoryCubit.java
index ffa124a3..65928a20 100644
--- a/src/main/java/org/distorted/objects/FactoryCubit.java
+++ b/src/main/java/org/distorted/objects/FactoryCubit.java
@@ -698,9 +698,9 @@ class FactoryCubit
     float Y4= MINX_SC*H*(1/(2*MINX_C4) - MINX_C4);
 
     float[] vertices0 = { -X1, Y2, 0, -Y1, X1, Y2, 0, Y1 };
-    float[] bands0 = computeBands(0.03f,39,0.3f,0.2f,5);
+    float[] bands0 = computeBands(0.04f,20,0.3f,0.2f,5);
     float[] vertices1 = { -X2, Y4, 0, -Y3, X2, Y4, 0, Y3 };
-    float[] bands1 = computeBands(0.00f,27,0.25f,0.5f,2);
+    float[] bands1 = computeBands(0.00f, 0,0.25f,0.5f,2);
 
     meshes[0] = new MeshPolygon(vertices0, bands0, 1, 1);
     meshes[0].setEffectAssociation(0, 1,0);
@@ -1630,13 +1630,23 @@ class FactoryCubit
     MeshBase mesh = createFacesMinxCorner();
     VertexEffect[] effects = createVertexEffectsMinxCorner();
     for( VertexEffect effect : effects ) mesh.apply(effect);
-/*
-    Static3D center = new Static3D(0.0f,-0.5f,-0.5f);
-    Static3D[] vertices = new Static3D[2];
-    vertices[0] = new Static3D(+0.5f,+0.0f,+0.0f);
-    vertices[1] = new Static3D(-0.5f,+0.0f,+0.0f);
-    roundCorners(mesh,center,vertices,0.06f,0.10f);
-*/
+
+    float A = (2*SQ3/3)*MINX_C1;
+    float B = 0.4f;
+    float X = MINX_C5*MINX_C1*MINX_C3;
+    float Y = MINX_C1*MINX_C1 - 0.5f;
+    float Z = MINX_C4*MINX_C1*MINX_C3;
+
+    Static3D center = new Static3D(0.0f, -(float)Math.sqrt(1-A*A)*B,-A*B);
+
+    Static3D[] vertices = new Static3D[4];
+    vertices[0] = new Static3D( 0.0f, 0.0f, 0.0f);
+    vertices[1] = new Static3D( 0.0f,-0.5f, 0.0f);
+    vertices[2] = new Static3D(-X   , Y   ,-Z   );
+    vertices[3] = new Static3D(+X   , Y   ,-Z   );
+
+    roundCorners(mesh,center,vertices,0.03f,0.10f);
+
     mesh.mergeEffComponents();
 
     return mesh;
diff --git a/src/main/java/org/distorted/objects/TwistyMinx.java b/src/main/java/org/distorted/objects/TwistyMinx.java
index 1a2b1d86..14161130 100644
--- a/src/main/java/org/distorted/objects/TwistyMinx.java
+++ b/src/main/java/org/distorted/objects/TwistyMinx.java
@@ -186,7 +186,7 @@ public class TwistyMinx extends TwistyObject
 
   float getScreenRatio()
     {
-    return 1.0f;
+    return 0.9f;
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -316,8 +316,8 @@ public class TwistyMinx extends TwistyObject
 
   void createFaceTexture(Canvas canvas, Paint paint, int face, int left, int top)
     {
-    float S = 0.08f;
-    float R = 0.12f;
+    float S = 0.07f;
+    float R = 0.09f;
 
     float X1= (SQ5+1)/8;
     float Y1= (float)(Math.sqrt(2+0.4f*SQ5)/4);
