Project

General

Profile

« Previous | Next » 

Revision 66de0d91

Added by Leszek Koltunski over 2 years ago

Make the Master Kilominx' and Gigaminx' meshes much smaller.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyMegaminx.java
257 257
    int[] numLayers = getNumLayers();
258 258
    int numVariants = getNumCubitVariants(numLayers);
259 259
    int numL        = numLayers[0];
260
    boolean small   = numL<=3;
260 261

  
261 262
    if( variant==0 )
262 263
      {
......
266 267
      double X = width*COS18*SIN_HALFD;
267 268
      double Y = width*SIN18;
268 269
      double Z = width*COS18*COS_HALFD;
269
      int N = numL==3 ? 1:0;
270 270

  
271 271
      double[][] vertices = new double[][]
272 272
        {
......
292 292

  
293 293
      float[][] bands    = new float[][]
294 294
        {
295
         {0.04f,34,0.3f,0.2f, 3, N, 0},
296
         {0.00f, 0,0.0f,0.0f, 2, N, 0}
295
         {0.04f,34,0.3f,0.2f, 3, 0, 0},
296
         {0.00f, 0,0.0f,0.0f, 2, 0, 0}
297 297
        };
298 298

  
299 299
      int[] bandIndices   = new int[] { 0,0,0,1,1,1};
......
337 337
            {4,5,6,7}
338 338
        };
339 339

  
340
      int N = numL<=5 ? 5 : 3;
340
      int N = small ? 5 : 3;
341 341

  
342 342
      float[][] bands = new float[][]
343 343
        {
344 344
         {0.04f,34,0.2f,0.2f,N,0,0},
345
         {0.00f, 0,0.3f,0.2f,2,0,0}
345
         {0.00f,34,0.3f,0.2f,2,0,0}
346 346
        };
347 347
      int[] bandIndices   = new int[] { 0,0,1,1,1,1};
348 348
      float[][] corners   = new float[][] { {0.04f,0.10f} };
......
381 381
          {0,1,2,3,4}
382 382
        };
383 383

  
384
      int N = numL==3 ? 4 : 3;
384
      int N = small ? 4 : 3;
385 385

  
386 386
      float[][] bands = new float[][]
387 387
        {
388 388
         {0.04f,45, R/3,0.2f,N,0,0},
389
         {0.00f, 0, R/3,0.2f,2,0,0}
389
         {0.00f,45, R/3,0.2f,2,0,0}
390 390
        };
391 391

  
392 392
      int[] bandIndices   = new int[] { 0,1 };

Also available in: Unified diff