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/TwistyCube.java
180 180
                                                  bands, bandIndexes,
181 181
                                                  corners, cornerIndexes,
182 182
                                                  centers, centerIndexes,
183
                                                  getNumCubitFaces() );
183
                                                  getNumCubitFaces(), null );
184 184
      }
185 185

  
186 186
    return mMeshes[index].copy(true);

Also available in: Unified diff