commit d2f57a837b9d13902d93edca2067f96ddb4dc5fa
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Sun Jun 18 00:40:52 2023 +0200

    Multigon testing app

diff --git a/src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java b/src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java
index 3ad4b8d..8aaa7e8 100644
--- a/src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java
+++ b/src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java
@@ -355,6 +355,8 @@ class MeshFileRenderer implements GLSurfaceView.Renderer, DistortedLibrary.Libra
 
     private void createMesh()
       {
+      float A = 2.0f;
+
       float[][] vertices =
           {
               { 0.5f, 0.5f, 0.5f },
@@ -366,33 +368,42 @@ class MeshFileRenderer implements GLSurfaceView.Renderer, DistortedLibrary.Libra
               {-0.5f,-0.5f, 0.5f },
               {-0.5f,-0.5f,-0.5f },
 
-              {-0.5f, 0.0f, 0.5f },
-              { 0.5f, 0.0f, 0.5f },
+              { 0.5f,   -A, 0.5f },
+              { 0.5f,   -A,-0.5f },
+              {-0.5f,   -A, 0.5f },
+              {-0.5f,   -A,-0.5f },
+
+              {   -A, 0.5f, 0.5f },
+              {   -A, 0.5f,-0.5f },
+              {   -A,-0.5f, 0.5f },
+              {   -A,-0.5f,-0.5f },
           };
 
       int[][][] vertIndices =
           {
-              { {2,3,1,0} },
-              { {7,6,4,5} },
-              { {4,0,1,5} },
-              { {7,3,2,6} },
-              { {8,9,0,4}, {6,2,9,8} },
-              { {3,7,5,1} }
+              { { 8, 9, 1, 0} },
+              { {15,14,12,13} },
+              { {11,10, 6, 7} },
+              { {12, 0, 1,13} },
+              { {11, 9, 8,10} },
+              { {15, 7, 6,14} },
+              { {14, 6, 4,12}, { 6, 2, 0, 4}, {10, 8, 2, 6} },
+              { { 3, 7, 5, 1}, { 9,11, 7, 3}, { 7,15,13, 5} }
           };
 
-      float height = 0.05f;
+      float height = 0.02f;
       int num = 5;
       int extraI = 1;
       int extraV = 1;
 
-      float[][] bands= { {height,35,0.5f,0.7f,num,extraI,extraV} };
+      float[][] bands= { {height,25,0.3f,0.5f,num,extraI,extraV} };
 
-      int[] bandIndices = {0,0,0,0,0,0};
+      int[] bandIndices = {0,0,0,0,0,0,0,0};
       float[] convex = null;
 
       float[][] corners= { {0.036f,0.12f} };
       float[][] centers= { {0.0f, 0.0f, 0.0f} };
-      int[] ind    = { 0,0,0,0,0,0,0,0,-1,-1 };
+      int[] ind    = { 0,0,-1,-1,-1,-1,-1,-1, 0,0,0,0,0,0,0,0 };
 
       ObjectShape shape = new ObjectShape(vertices, vertIndices);
       ObjectFaceShape face = new ObjectFaceShape(bands, bandIndices, convex);
