Project

General

Profile

« Previous | Next » 

Revision 59a971c1

Added by Leszek Koltunski over 2 years ago

Remove the need to provide the number of outer faces of a ObjectShape.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistySkewb.java
414 414
      {
415 415
      float[][] vertices= { {-1,0,0},{0,-1,0},{0,0,-1},{-1,-1,-1},{0,0,0} };
416 416
      int[][] indices   = { {0,1,4},{2,0,4},{1,2,4},{3,1,0},{3,2,1},{3,0,2} };
417
      return new ObjectShape(vertices, indices, 3);
417
      return new ObjectShape(vertices, indices);
418 418
      }
419 419
    else if( variant==1 )
420 420
      {
421 421
      float[][] vertices= { {-1,0,0},{0,-1,0},{1,0,0},{0,1,0},{0,0,-1} };
422 422
      int[][] indices   = { {0,1,2,3},{4,1,0},{4,2,1},{4,3,2},{4,0,3} };
423
      return new ObjectShape(vertices, indices, 1);
423
      return new ObjectShape(vertices, indices);
424 424
      }
425 425
    else
426 426
      {
427 427
      float[][] vertices= { {-1,0,0},{1,0,0},{0,-1,0},{0,0,-1} };
428 428
      int[][] indices   = { {2,1,0},{3,0,1},{2,3,1},{3,2,0} };
429
      return new ObjectShape(vertices, indices, 2);
429
      return new ObjectShape(vertices, indices);
430 430
      }
431 431
    }
432 432

  

Also available in: Unified diff