Project

General

Profile

« Previous | Next » 

Revision 57ef6378

Added by Leszek Koltunski over 2 years ago

Float vertices - scratchbook

View differences:

src/main/java/org/distorted/objectlib/objects/TwistySkewb.java
422 422

  
423 423
    if( variant==0 )
424 424
      {
425
      double[][] vertices = new double[][] { {-1,0,0},{0,-1,0},{0,0,-1},{-1,-1,-1},{0,0,0} };
425
      float[][] vertices = new float[][] { {-1,0,0},{0,-1,0},{0,0,-1},{-1,-1,-1},{0,0,0} };
426 426
      int[][] vert_indices = new int[][] { {0,1,4},{2,0,4},{1,2,4},{3,1,0},{3,2,1},{3,0,2} };
427 427
      int N = numL==2 ? 7:5;
428 428
      int E1= numL==2 ? 3:2;
......
437 437
      }
438 438
    else if( variant==1 )
439 439
      {
440
      double[][] vertices = new double[][] { {-1,0,0},{1,0,0},{0,-1,0},{0,0,-1} };
440
      float[][] vertices = new float[][] { {-1,0,0},{1,0,0},{0,-1,0},{0,0,-1} };
441 441
      int[][] vert_indices = new int[][] { {2,1,0},{3,0,1},{2,3,1},{3,2,0} };
442 442
      int N = numL==2 ? 7:5;
443 443
      int E = numL==2 ? 5:2;
......
451 451
      }
452 452
    else
453 453
      {
454
      double[][] vertices = new double[][] { {-1,0,0},{0,-1,0},{1,0,0},{0,1,0},{0,0,-1} };
454
      float[][] vertices = new float[][] { {-1,0,0},{0,-1,0},{1,0,0},{0,1,0},{0,0,-1} };
455 455
      int[][] vert_indices = new int[][] { {0,1,2,3},{4,1,0},{4,2,1},{4,3,2},{4,0,3} };
456 456
      int N = numL==2 ? 7:6;
457 457
      int E = numL==2 ? 3:1;

Also available in: Unified diff