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/TwistyMinx.java
427 427
                                      bands, bandIndexes,
428 428
                                      corners, cornerIndexes,
429 429
                                      centers, centerIndexes,
430
                                      getNumCubitFaces() );
430
                                      getNumCubitFaces(), null );
431 431
    }
432 432

  
433 433
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff