Revision cfbd047c
Added by Leszek Koltunski almost 4 years ago
| src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
|---|---|---|
| 47 | 47 |
import org.distorted.objectlib.helpers.ObjectFaceShape; |
| 48 | 48 |
import org.distorted.objectlib.helpers.ObjectShape; |
| 49 | 49 |
import org.distorted.objectlib.main.TwistyObject; |
| 50 |
import org.distorted.objectlib.objects.TwistyContainer;
|
|
| 50 |
import org.distorted.objectlib.objects.*;
|
|
| 51 | 51 |
|
| 52 | 52 |
import java.io.DataInputStream; |
| 53 | 53 |
import java.io.IOException; |
| ... | ... | |
| 292 | 292 |
Static4D quat = new Static4D(0,0,0,1); |
| 293 | 293 |
Static3D move = new Static3D(0,0,0); |
| 294 | 294 |
float scale = 1.0f; |
| 295 |
int variant = 0;
|
|
| 295 |
int variant = 1;
|
|
| 296 | 296 |
|
| 297 |
int[] numLayers = new int[] {2,2,2,2};
|
|
| 298 |
TwistyObject puzzle = new TwistyContainer(numLayers,MESH_NICE,quat,move,scale,null);
|
|
| 297 |
int[] numLayers = new int[] {2,3,2};
|
|
| 298 |
TwistyObject puzzle = new TwistyCuboid(numLayers,MESH_NICE,quat,move,scale,null);
|
|
| 299 | 299 |
|
| 300 | 300 |
ObjectShape shape = puzzle.getObjectShape(variant); |
| 301 | 301 |
ObjectFaceShape face= puzzle.getObjectFaceShape(variant); |
Also available in: Unified diff
Improve the CU_232 mesh.