Project

General

Profile

« Previous | Next » 

Revision 47d98cd5

Added by Leszek Koltunski almost 3 years ago

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.

View differences:

src/main/java/org/distorted/objects/TwistyPyraminx.java
333 333
                                                bands, bandIndexes,
334 334
                                                corners, cornerIndexes,
335 335
                                                centers, centerIndexes,
336
                                                getNumCubitFaces() );
336
                                                getNumCubitFaces(), null );
337 337
        }
338 338
      mesh = mMeshes[0].copy(true);
339 339
      }
......
355 355
                                                bands, bandIndexes,
356 356
                                                corners, cornerIndexes,
357 357
                                                centers, centerIndexes,
358
                                                getNumCubitFaces() );
358
                                                getNumCubitFaces(), null );
359 359

  
360 360
        factory.printStickerCoords();
361 361
        }

Also available in: Unified diff