Project

General

Profile

« Previous | Next » 

Revision a97e02b7

Added by Leszek Koltunski over 3 years ago

Objects must explicitly provide a list of offsets specifying where the cut planes are (rather than just a BASIC_STEP - the width of the layer - which is insufficient in case of objects which have layers of vastly different width, like the Master Skewb)

View differences:

src/main/java/org/distorted/objects/TwistyDino.java
163 163

  
164 164
///////////////////////////////////////////////////////////////////////////////////////////////////
165 165

  
166
  float getBasicStep()
166
  float[] getCuts(int size)
167 167
    {
168
    return SQ3;
168
    float[] cuts = new float[2];
169

  
170
    cuts[0] = -SQ3/3;
171
    cuts[1] = +SQ3/3;
172

  
173
    return cuts;
169 174
    }
170 175

  
171 176
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff