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/TwistySquare.java
191 191
                                              bands, bandIndexes,
192 192
                                              corners, cornerIndexes,
193 193
                                              centers, centerIndexes,
194
                                              getNumCubitFaces() );
194
                                              getNumCubitFaces(), null );
195 195
      }
196 196

  
197 197
    return mMeshes[0].copy(true);
......
220 220
                                               bands, bandIndexes,
221 221
                                               corners, cornerIndexes,
222 222
                                               centers, centerIndexes,
223
                                               getNumCubitFaces() );
223
                                               getNumCubitFaces(), null );
224 224
       }
225 225
    return mMeshes[1].copy(true);
226 226
    }

Also available in: Unified diff