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/TwistySkewb.java
502 502
                                                bands, bandIndexes,
503 503
                                                corners, cornerIndexes,
504 504
                                                centers, centerIndexes,
505
                                                getNumCubitFaces() );
505
                                                getNumCubitFaces(), null );
506 506
        }
507 507
      mesh = mMeshes[0].copy(true);
508 508
      }
......
527 527
                                                bands, bandIndexes,
528 528
                                                corners, cornerIndexes,
529 529
                                                centers, centerIndexes,
530
                                                getNumCubitFaces() );
530
                                                getNumCubitFaces(), null );
531 531
        }
532 532
      mesh = mMeshes[1].copy(true);
533 533
      }
......
552 552
                                                bands, bandIndexes,
553 553
                                                corners, cornerIndexes,
554 554
                                                centers, centerIndexes,
555
                                                getNumCubitFaces() );
555
                                                getNumCubitFaces(), null );
556 556
        }
557 557
      mesh = mMeshes[2].copy(true);
558 558
      }

Also available in: Unified diff