commit e08385362db50f1ae079326e7bce72ca8924346a
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Thu Dec 31 22:58:36 2020 +0100

    Progress with the Kilominx - rotations.

diff --git a/src/main/java/org/distorted/examples/meshfile/FactoryCubit.java b/src/main/java/org/distorted/examples/meshfile/FactoryCubit.java
index 5f3e5a1..e9dcdb0 100644
--- a/src/main/java/org/distorted/examples/meshfile/FactoryCubit.java
+++ b/src/main/java/org/distorted/examples/meshfile/FactoryCubit.java
@@ -749,7 +749,7 @@ class FactoryCubit
     float[] vertices0 = { -X1, Y2, 0, -Y1, X1, Y2, 0, Y1 };
     float[] bands0 = computeBands(0.03f,39,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,27,0.25f,0.5f,5);
 
     meshes[0] = new MeshPolygon(vertices0, bands0, 1, 1);
     meshes[0].setEffectAssociation(0, 1,0);
@@ -757,7 +757,7 @@ class FactoryCubit
     meshes[1].setEffectAssociation(0, 2,0);
     meshes[2] = meshes[0].copy(true);
     meshes[2].setEffectAssociation(0, 4,0);
-    meshes[3] = new MeshPolygon(vertices1, bands1, 0, 0);
+    meshes[3] = new MeshPolygon(vertices1, bands1, 1, 1);
     meshes[3].setEffectAssociation(0, 8,0);
     meshes[4] = meshes[3].copy(true);
     meshes[4].setEffectAssociation(0,16,0);
@@ -1672,13 +1672,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;
