Project

General

Profile

« Previous | Next » 

Revision d2e06841

Added by Leszek Koltunski 10 months ago

progress with TwistyBandagedMegaminx.

View differences:

src/main/java/org/distorted/objectlib/helpers/ObjectSignature.java
93 93
// the signature must contain ceil( 12*(N-1)^2 / 64 ) bytes.
94 94
// a pyraminx of size N has 4 + 6*(N-1)(N-2) places two adjacent cubies can be 'glued' so much less.
95 95

  
96
// Gigaminx has 480 such places (so more if N<=7)
96
// Gigaminx has 540 such places (so more if N<=7)
97 97

  
98 98
  private static int computeNum()
99 99
    {
100 100
    int max = MAX_SUPPORTED_SIZE-1;
101 101
    int ret = (int)(0.99f + (12*max*max)/64.0f);
102
    int giga= (int)(0.99f + (       480)/64.0f);
102
    int giga= (int)(0.99f + (       540)/64.0f);
103 103

  
104 104
    return Math.max(ret,giga);
105 105
    }
......
1038 1038

  
1039 1039
    ArrayList<float[]> mTouch = new ArrayList<>();
1040 1040

  
1041
    int t=0;
1042

  
1043 1041
    for(int i=0; i<numCubits; i++)
1044 1042
      {
1045 1043
      float[] first = getPosition(i,centers,numVariants);
......
1062 1060
          float zc = (tz+oz)/2;
1063 1061

  
1064 1062
          float[] touch = new float[] {xc, yc, zc};
1065

  
1066
          android.util.Log.e("D", "cubit touch: "+t+" : "  +xc+" "+yc+" "+zc );
1067
          t++;
1068

  
1069 1063
          mTouch.add(touch);
1070 1064
          }
1071 1065
        }

Also available in: Unified diff