Project

General

Profile

« Previous | Next » 

Revision 22b32e57

Added by Leszek Koltunski over 3 years ago

Progress with any size Kilominx.

View differences:

src/main/java/org/distorted/objects/TwistyKilominx.java
44 44
  private static MeshBase[] mCenterMeshes, mCornerMeshes;
45 45
  private static MeshBase[][] mEdgeMeshes;
46 46

  
47
  private static final int[] mCenterFaceMap = new int[]
48
      {
49
        0,0,0,0,1,
50
        1,0,1,1,0,
51
        2,0,1,1,0,
52
        2,2,1,0,2,
53
        2,1,0,0,1,
54
        1,2,0,1,0,
55
        0,1,0,1,1,
56
        0,1,0,2,0,
57
        2,1,2,2,2,
58
        1,0,2,1,2,
59
        2,1,0,1,2,
60
        2,2,2,2,2
61
      };
62

  
47 63
  private static final int mNumCornerEdgeVariants;
48 64

  
49 65
  static
......
434 450
      return cubitface>=0 && cubitface<3 ? mCornerFaceMap[center][cubitface] : NUM_TEXTURES;
435 451
      }
436 452

  
437
    return center/5 + NUM_FACES*(numLayers-1)/2; // TODO
453
    return cubitface==mCenterFaceMap[center] ? center/5 + NUM_FACES*(numLayers-1)/2 : NUM_TEXTURES;
438 454
    }
439 455

  
440 456
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff