Revision 2f250195
Added by Leszek Koltunski over 3 years ago
| src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
|---|---|---|
| 46 | 46 |
import org.distorted.objectlib.helpers.FactoryCubit; |
| 47 | 47 |
import org.distorted.objectlib.helpers.ObjectFaceShape; |
| 48 | 48 |
import org.distorted.objectlib.helpers.ObjectShape; |
| 49 |
import org.distorted.objectlib.main.InitData; |
|
| 49 | 50 |
import org.distorted.objectlib.main.TwistyObject; |
| 50 | 51 |
import org.distorted.objectlib.objects.*; |
| 51 | 52 |
|
| ... | ... | |
| 295 | 296 |
float scale = 1.0f; |
| 296 | 297 |
int variant = 1; |
| 297 | 298 |
|
| 298 |
int[] numLayers = new int[] {2,3,2};
|
|
| 299 |
TwistyObject puzzle = new TwistyCuboid(numLayers,MESH_NICE,MODE_NORM,quat,move,scale,null);
|
|
| 299 |
InitData data = new InitData(new int[] {2,3,2});
|
|
| 300 |
TwistyObject puzzle = new TwistyCuboid(data,MESH_NICE,MODE_NORM,quat,move,scale,null);
|
|
| 300 | 301 |
|
| 301 | 302 |
ObjectShape shape = puzzle.getObjectShape(variant); |
| 302 | 303 |
ObjectFaceShape face= puzzle.getObjectFaceShape(variant); |
Also available in: Unified diff
Introduce InitData, a data structure used to initialize a TwistyObject.
Current (optional) members: int[] numLayers, int param [intended: type of the Crazy 3x3 planet], float[][] pos [position of a bandaged cube] )