Project

General

Profile

« Previous | Next » 

Revision 37959420

Added by Leszek Koltunski over 1 year ago

Some more debugging.

View differences:

src/main/java/org/distorted/objectlib/main/TwistyObject.java
152 152
  private String mErrorString;
153 153
  private int mMaxNumLayers;
154 154
  private int mNumAxis;
155
  private int mPointNum;
155 156

  
156 157
  //////////////////// SOLVED1 ////////////////////////
157 158

  
......
200 201
    {
201 202
    float[] tracking = mCubits[cubitIndex].getTrackingPoint();
202 203

  
203
    String problem = (getShortName()+" "+cubitIndex+" "+quat.get0()+" "+quat.get1()+" "+quat.get2());
204
    String problem = (getShortName()+" "+cubitIndex+" "+quat.get0()+" "+quat.get1()+" "+quat.get2()+" "+quat.get3());
204 205
    problem += (" "+angle+" "+place+" "+tracking[0]+" "+tracking[1]+" "+tracking[2]);
205
    problem += (axisX+" "+axisY+" "+axisZ);
206
    problem += (" "+axisX+" "+axisY+" "+axisZ)+" "+mPointNum;
206 207

  
207 208
    mInterface.reportProblem(problem,true);
208 209
    }
......
1388 1389

  
1389 1390
  private float getAngle()
1390 1391
    {
1391
    int pointNum = mRotationAngle.getNumPoints();
1392

  
1393
    if( pointNum>=1 )
1394
      {
1395
      return mRotationAngle.getPoint(pointNum-1).get0();
1396
      }
1397
    else
1398
      {
1399
      mInterface.reportProblem("points in RotationAngle: "+pointNum, false);
1400
      return 0;
1401
      }
1392
    mPointNum = mRotationAngle.getNumPoints();
1393
    return mPointNum>=1 ? mRotationAngle.getPoint(mPointNum-1).get0() : 0;
1402 1394
    }
1403 1395

  
1404 1396
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff