Revision a97e02b7
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/TwistyRedi.java | ||
---|---|---|
180 | 180 |
|
181 | 181 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
182 | 182 |
|
183 |
float getBasicStep()
|
|
183 |
float[] getCuts(int size)
|
|
184 | 184 |
{ |
185 |
return SQ3; |
|
185 |
float[] cuts = new float[2]; |
|
186 |
|
|
187 |
cuts[0] = -SQ3/3 -0.05f; |
|
188 |
cuts[1] = +SQ3/3 +0.05f; |
|
189 |
|
|
190 |
return cuts; |
|
186 | 191 |
} |
187 | 192 |
|
188 | 193 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
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)