Project

General

Profile

« Previous | Next » 

Revision 7d8cc029

Added by Leszek Koltunski about 3 years ago

Simplify.

View differences:

src/main/java/org/distorted/objects/TwistyObject.java
549 549
///////////////////////////////////////////////////////////////////////////////////////////////////
550 550
// create StickerCoord and FaceTransform data structures
551 551

  
552
  void createFaceDataStructures()
552
  void createFaceDataStructures(double[][][] verts, int[][][] indices)
553 553
    {
554
    int numCubitTypes = getNumCubitTypes(mNumLayers);
554
    int numCubitTypes = verts.length;
555 555
    FactoryCubit factory = FactoryCubit.getInstance();
556 556
    factory.clear();
557 557

  
558 558
    for(int cubit=0; cubit<numCubitTypes; cubit++)
559 559
      {
560
      double[][] vertices = getVertices(cubit);
561
      int[][] vertIndices = getVertIndexes(cubit);
560
      double[][] vertices = verts[cubit];
561
      int[][] vertIndices = indices[cubit];
562 562
      factory.createNewFaceTransform(vertices,vertIndices);
563 563
      }
564 564

  
......
970 970
  abstract float[] getRowChances(int numLayers);
971 971
  abstract float[] getCuts(int numLayers);
972 972
  abstract boolean shouldResetTextureMaps();
973
  abstract double[][] getVertices(int cubitType);
974
  abstract int[][] getVertIndexes(int cubitType);
975
  abstract int getNumCubitTypes(int numLayers);
976 973

  
977 974
  public abstract boolean isSolved();
978 975
  public abstract Static3D[] getRotationAxis();

Also available in: Unified diff