Project

General

Profile

Download (14.1 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / objects / TwistyPyraminx.java @ 4946b635

# Date Author Comment
4946b635 09/24/2021 11:30 AM Leszek Koltunski

Major abstraction - automatically compute the 'computeRowFromOffset()' function from CUTS.
Still one thing left: it appears like the CUTS of Mega/Kilominxes are not correct.

ef018c1b 09/23/2021 02:11 AM Leszek Koltunski

Abstract the next function, computeRowFromOffset(), out of the individual Movement classes.
Still two issues:

1) mysterious 1.5 multiplier in Movement12
2) in Movement8, moving the offset works only if the rotAxis are face-turning, i.e. they connect the centers of the opposing faces of the octahedron.

efa81f0c 09/21/2021 01:43 AM Leszek Koltunski

Introduce abstract 4,6,8 adn 12 classes.

e9a87113 09/21/2021 12:59 AM Leszek Koltunski

Move the Movement class from ObjectList to individual object classes.

5da517d3 09/19/2021 01:04 PM Leszek Koltunski

Minor

abf36986 09/13/2021 03:15 AM Leszek Koltunski

Add Mirror Cube 2x2 and 3x3.

91792184 09/10/2021 01:29 AM Leszek Koltunski

Make object scrambling abstract (well, almost - with exception of Square-1 - this theoretically could also be done the generic way, but this would require almost 20000 'ScrambleStates')

48fec01e 09/07/2021 12:48 AM Leszek Koltunski

Remove statics from the Pyraminx class.

bbbfb6af 09/01/2021 10:02 PM Leszek Koltunski

Convert the Pyraminxes to the new scrambling paradigm.
This leaves only the two Squares.

169219a7 08/26/2021 10:30 PM Leszek Koltunski

Remove the last 'isSolved()' (from Dino4) and put it to the parent class as a special case.

a480ee80 08/26/2021 01:13 AM Leszek Koltunski

Standarize the 'isSolved()' method: now all objects, except one (Dino4) have a standard isSolved().
This incidentally also fixes detection of the solved state in case of Diamond4, i.e. a Master FTO.

3e605536 08/23/2021 03:20 PM Leszek Koltunski

Finally remove cubit creation from the implementation classes and move it to the TwistyObject.

045d8cbd 08/20/2021 11:24 PM Leszek Koltunski

Convert Pyraminx to the new scheme. Make Pyra4 and Pyra5 meshes much smaller.

ad7907b0 08/19/2021 11:28 PM Leszek Koltunski

Important step towards making the implementation of an individual puzzle code-free (i.e. data-only): move the 'MeshBase[] mMeshes' variable from the individual classes to the parent TwistyObject.

47d98cd5 08/17/2021 05:30 PM Leszek Koltunski

Convert the Ivy corner cubit to the new, 'universal' cubit creation method.

This forces deep changes to 'createRoundSolid' and the underlying 'MeshPolygon' class to make them support arbitrary Polygon 'centers of face convexity'.

Reason: the faces of this cubit are concave and such default 'center of face convexity' (which by default used to be (0,0)) turned to lie outside the face - which produces strange visual artifacts.

ecf3f149 08/08/2021 04:46 PM Leszek Koltunski

Move the TwistyObject.retCubePosition() to the solver.

9c06394a 08/08/2021 04:21 PM Leszek Koltunski

Standarize drawing stickers of a twisty puzzle. From now on, there's no 'sticker drawing' code in the individual classes, only some constants.

29bc084f 08/06/2021 01:48 PM Leszek Koltunski

Convert the last 'special' case, the Rex edge sticker, to the generic sticker mechanism.

9ce78850 08/06/2021 12:38 AM Leszek Koltunski

Generalize FactorySticker - make it possible to draw stickers whose sides are curved.
Convert the Ivy to use this new functionality.

f074c272 07/30/2021 04:15 PM Leszek Koltunski

Make the Pyraminxes a bit bigger by default - improvement.

329da839 07/30/2021 04:13 PM Leszek Koltunski

Make the Pyraminxes a bit bigger by default.

3ca97293 06/17/2021 10:01 AM Leszek Koltunski

Correct rotations of the Pyraminx - eliminate one cse when three consecutive rotations collapse into one.

9f171eba 06/13/2021 10:35 PM Leszek Koltunski

Preparation for 'smart scrambling' : introduce the total number of scrambles to the 'randomizeNewScramble' function.

e6734aa9 06/04/2021 01:25 AM Leszek Koltunski

Make it possible for an object to have different 'cuts' along each of its axis.

925ed78f 06/04/2021 12:26 AM Leszek Koltunski

Make it possible for an object to have different 'basicAngles' along each of its axis.

582617c1 06/03/2021 10:46 PM Leszek Koltunski

Hide more stuff in the TwistyObject class.

0203be88 06/03/2021 10:06 PM Leszek Koltunski

Remove the need for RowChances.

7d8cc029 04/18/2021 10:20 PM Leszek Koltunski

Simplify.

b3c9061a 04/14/2021 11:59 PM Leszek Koltunski

New Cubit Engine: add adjustable centers.

31cd7256 04/14/2021 10:09 PM Leszek Koltunski

Convert the second and third object, the Pyraminx and the Diamond, to the new Cubit-creating engine.

b1f2ccf5 04/14/2021 04:00 PM Leszek Koltunski

Convert the first object, the Cube, to the new Cubit-creating engine.

749ef882 04/14/2021 10:01 AM Leszek Koltunski

Move Factories to the 'helpers' package.

5043d5d0 03/21/2021 12:44 AM Leszek Koltunski

Refactor the automatic scrambling. From now on, it is not needed to care about single and double turns when randomizing a new turn.

bbc6471c 03/20/2021 12:36 AM Leszek Koltunski

Change the automatic scramble API in the TwistyObject - in preparation for automatic scrambles in the Bandaged Objects.

e6cf7283 03/18/2021 09:48 AM Leszek Koltunski

Change the Cubit center from a Static3D to a float[].
The point: now we can have more than one center, and bandaged objects need more than one, because in this way they are going to fill up their RotationRow bitmaps.

f0450fcc 03/17/2021 04:37 PM Leszek Koltunski

Change Cubit.mRotationRow[] from an index pointing at a single rotating layer to a bitmap potentially pointing at several layers.
(in preparation for bandaged objects)

722b2512 03/17/2021 03:20 PM Leszek Koltunski

Simplifications.

221a4090 03/17/2021 02:31 PM Leszek Koltunski

Simplification with objects.

db875721 03/07/2021 12:17 AM Leszek Koltunski

Add Gigaminx dmesh.

a64e07d0 01/19/2021 04:17 PM Leszek Koltunski

Beginnings of Megaminx & Gigaminx

bb490017 11/26/2020 08:23 PM Leszek Koltunski

Fix a long standing bug in the way we detect if a Cube or Pyraminx is solved. The reason for all those 'impossible' records being submitted.

6fd4a72c 10/23/2020 11:51 PM Leszek Koltunski

Preparation for the Object Info popup: add the name, inventor, complexity info to each object.

ae755eda 10/16/2020 10:26 PM Leszek Koltunski

Make the texture multi-row: avoid the maximum texture size.

b89898c5 10/16/2020 12:11 PM Leszek Koltunski

Progress with Skewb familty; separate StickerFactory class.

d99f3a48 10/16/2020 08:32 AM Leszek Koltunski

Spearate the concept of number of layers of an object and its size.
In case of the Skewb family, this is no longer the same (Master Skewb has 3 layers but it's twice bigger than the 2-layered Skewb)

a97e02b7 10/15/2020 03:11 PM Leszek Koltunski

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)

eb389a97 10/15/2020 10:49 AM Leszek Koltunski

Move computation of the rotation rows to the Object from Cubits.

3f3ff476 10/14/2020 03:21 PM Leszek Koltunski

Beginnings of support for any-sized Skewb.

76c2bd07 09/30/2020 06:08 PM Leszek Koltunski

Simplify drawing textures.

f18e8fae 09/29/2020 08:33 PM Leszek Koltunski

Simplify drawing textures.

ac940e24 09/28/2020 12:59 PM Leszek Koltunski

Add a CubitFactory and convert all objects to use it. Biggest change is thr Pyramiinx which now uses a lattice of Octahedrons and Tetrahedrons, just like the Diamond.

ee39837d 09/26/2020 11:30 PM Leszek Koltunski

Progress with the Diamond. Everything working except for the isSolved(): turns out the center cubits can end up rotated along the face by multitudes of 120 degrees.

cc99cf91 09/26/2020 08:44 PM Leszek Koltunski

Progress with the Diamond. Everything working, expect one thing: half of the faces are upside down, and computing offset doesn't work on those faces properly.

9c2f0c91 09/25/2020 08:35 AM Leszek Koltunski

Rename some classes.