Revision 1cef1481
Added by Leszek Koltunski over 4 years ago
| src/main/java/org/distorted/objects/TwistySquare.java | ||
|---|---|---|
| 20 | 20 |
package org.distorted.objects; |
| 21 | 21 |
|
| 22 | 22 |
import android.content.res.Resources; |
| 23 |
import android.graphics.Canvas; |
|
| 24 |
import android.graphics.Paint; |
|
| 25 | 23 |
|
| 26 | 24 |
import org.distorted.helpers.FactoryCubit; |
| 27 |
import org.distorted.helpers.FactorySticker; |
|
| 28 |
import org.distorted.library.effect.MatrixEffectQuaternion; |
|
| 29 | 25 |
import org.distorted.library.main.DistortedEffects; |
| 30 | 26 |
import org.distorted.library.main.DistortedTexture; |
| 31 | 27 |
import org.distorted.library.mesh.MeshBase; |
| 32 | 28 |
import org.distorted.library.mesh.MeshSquare; |
| 33 | 29 |
import org.distorted.library.type.Static3D; |
| 34 | 30 |
import org.distorted.library.type.Static4D; |
| 35 |
import org.distorted.main.R; |
|
| 36 |
|
|
| 37 |
import java.util.Random; |
|
| 38 | 31 |
|
| 39 | 32 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 40 | 33 |
|
| src/main/java/org/distorted/objects/TwistySquare2.java | ||
|---|---|---|
| 98 | 98 |
private static final int[][] VERT_INDEXES_CORNER = new int[][] |
| 99 | 99 |
{
|
| 100 | 100 |
{0,1,2}, // counterclockwise!
|
| 101 |
{3,4,5},
|
|
| 101 |
{5,4,3},
|
|
| 102 | 102 |
{3,4,1,0},
|
| 103 | 103 |
{4,5,2,1},
|
| 104 | 104 |
{5,3,0,2}
|
Also available in: Unified diff
Square-2 fix.