Project

General

Profile

« Previous | Next » 

Revision 73a95dfd

Added by Leszek Koltunski over 3 years ago

All 9 cuboids now have flat internal walls and are ready for 'white plastic' mode.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyCuboid.java
256 256
             {height,35,0.5f,0.7f,num,extraI,extraV},
257 257
             {     0,35,0.5f,0.7f,  2, num-2,extraV},
258 258
             {     0,35,0.5f,0.7f,  2,     0,     0},
259
             {     0,35,0.5f,0.7f,num,extraI,extraV},
259 260
         };
260 261

  
261
         if( variant==0 ) bandIndices = new int[] {0,0,0,0,0,0};
262
         if( variant==0 ) bandIndices = new int[] {3,0,3,0,3,0};
262 263
    else if( variant==1 ) bandIndices = new int[] {1,1,1,0,1,0};
263 264
    else                  bandIndices = new int[] {2,2,2,2,0,2};
264 265

  
......
453 454

  
454 455
    switch(variant)
455 456
      {
456
      case 0: return mObjectQuats[0];
457
      case 0: switch(cubit)
458
                {
459
                case 0: return mObjectQuats[ 0];
460
                case 1: return mObjectQuats[18];
461
                case 2: return mObjectQuats[17];
462
                case 3: return mObjectQuats[ 2];
463
                case 4: return mObjectQuats[14];
464
                case 5: return mObjectQuats[ 5];
465
                case 6: return mObjectQuats[ 8];
466
                case 7: return mObjectQuats[11];
467
                }
457 468
      case 1: int edgeEdge   = getEdgeNum(cubit,numLayers);
458 469
              switch(edgeEdge)
459 470
                {

Also available in: Unified diff