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/TwistySquare1.java
209 209
                                              bands, bandIndexes,
210 210
                                              corners, cornerIndexes,
211 211
                                              centers, centerIndexes,
212
                                              getNumCubitFaces() );
212
                                              getNumCubitFaces(), null );
213 213
      }
214 214
    return mMeshes[2].copy(true);
215 215
    }

Also available in: Unified diff