Project

General

Profile

« Previous | Next » 

Revision 35510170

Added by Leszek Koltunski over 2 years ago

Correct the edges of the cuboid mesh - before we went too far and imperfections were visible.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyCuboid.java
261 261
             {height,35,0.5f,0.7f,num,extraI ,extraV},
262 262
             {height,35,0.5f,0.7f,  2,extraI2,     0},
263 263
             {height,35,0.5f,0.7f,  2,      0,     0},
264
             {height,35,0.5f,0.7f,  2,  num-2,extraV},
264 265
         };
265 266

  
266 267
    int[] bandIndices;
267 268

  
268 269
         if( variant==0 ) bandIndices = new int[] {0,0,0,0,0,0};
269
    else if( variant==1 ) bandIndices = new int[] {1,1,1,0,1,0};
270
    else if( variant==1 ) bandIndices = new int[] {3,3,3,0,3,0};
270 271
    else                  bandIndices = new int[] {1,1,1,1,0,2};
271 272

  
272 273
    return new ObjectShape(vertices,vert_indices,bands,bandIndices,corners,indices,centers,indices,getNumCubitFaces(), null);

Also available in: Unified diff