Project

General

Profile

« Previous | Next » 

Revision 47d98cd5

Added by Leszek Koltunski over 2 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/TwistyKilominx.java
424 424
                                      bands, bandIndexes,
425 425
                                      corners, cornerIndexes,
426 426
                                      centers, centerIndexes,
427
                                      getNumCubitFaces() );
427
                                      getNumCubitFaces(), null );
428 428
    }
429 429

  
430 430
///////////////////////////////////////////////////////////////////////////////////////////////////
......
496 496
                                      bands, bandIndexes,
497 497
                                      corners, cornerIndexes,
498 498
                                      centers, centerIndexes,
499
                                      getNumCubitFaces() );
499
                                      getNumCubitFaces(), null );
500 500
    }
501 501

  
502 502
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff