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/TwistyDiamond.java
387 387

  
388 388
    if( variant==0 )
389 389
      {
390
      double[][] vertices = new double[][]
390
      float[][] vertices = new float[][]
391 391
          {
392
             { 0.5,   0.0, 0.5},
393
             { 0.5,   0.0,-0.5},
394
             {-0.5,   0.0,-0.5},
395
             {-0.5,   0.0, 0.5},
396
             { 0.0, SQ2/2, 0.0},
397
             { 0.0,-SQ2/2, 0.0}
392
             { 0.5f,  0.0f, 0.5f},
393
             { 0.5f,  0.0f,-0.5f},
394
             {-0.5f,  0.0f,-0.5f},
395
             {-0.5f,  0.0f, 0.5f},
396
             { 0.0f, SQ2/2, 0.0f},
397
             { 0.0f,-SQ2/2, 0.0f}
398 398
          };
399 399

  
400 400
      int[][] vert_indices = new int[][]
......
419 419
      }
420 420
    else
421 421
      {
422
      double[][] vertices = new double[][] { {-0.5, SQ2/4, 0.0}, { 0.5, SQ2/4, 0.0}, { 0.0,-SQ2/4, 0.5}, { 0.0,-SQ2/4,-0.5} };
423
      int[][] vert_indices = new int[][]  { {2,1,0}, {2,3,1}, {3,2,0}, {3,0,1} };
422
      float[][] vertices  = new float[][] { {-0.5f, SQ2/4, 0.0f}, { 0.5f, SQ2/4, 0.0f}, { 0.0f,-SQ2/4, 0.5f}, { 0.0f,-SQ2/4,-0.5f} };
423
      int[][] vert_indices= new int[][]  { {2,1,0}, {2,3,1}, {3,2,0}, {3,0,1} };
424 424
      float[][] bands     = new float[][] { {0.05f,35,0.5f,0.8f,N,E,E} };
425 425
      int[] bandIndices   = new int[] { 0,0,0,0 };
426 426
      float[][] corners   = new float[][] { {0.08f,0.15f} };

Also available in: Unified diff