Project

General

Profile

« Previous | Next » 

Revision b0083951

Added by Leszek Koltunski over 1 year ago

Implement MeshMultigon out of BandedTriangles (doesn't work yet)

View differences:

src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java
341 341
      int extraVertices = 0;
342 342

  
343 343
      float[] v1 = new float[] {  -A,-A,   A,-A,   A,  A,   -A,  A };
344
      float[] v2 = new float[] {   A,-A, 2*A,-A, 2*A,  A,    A,  A };
344
    //  float[] v2 = new float[] {   A,-A, 2*A,-A, 2*A,  A,    A,  A };
345

  
346
      /*
345 347
      float[] v3 = new float[] {-3*A,-A,  -A,-A,  -A,  A, -3*A,  A };
346 348
      float[] v4 = new float[] {  -A, A,   A, A,   A,3*A,   -A,3*A };
347 349
      float[] v5 = new float[] {-3*A, A,  -A, A,  -A,3*A, -3*A,3*A };
348

  
349
      float[][] vertices = new float[][] {v1,v2,v3,v4,v5};
350
      */
351
      float[][] vertices = new float[][] {v1/*,v2,v3,v4,v5*/};
350 352
/*
351 353
      float[] c1 = new float[] { 0,0 };
352 354
      float[] c2 = new float[] { 1.5f*A,0 };
......
357 359
      float[][] centers = new float[][] { c1,c2,c3,c4,c5 };
358 360
*/
359 361
      float C = 1f;
360
      float[] bands = new float[] { 1.0f, 0.00f*C, 0.9f, 0.04f*C,  0.8f, 0.07f*C, 0.5f, 0.09f*C, 0.0f, 0.10f*C};
362
      float[] bands = new float[] { 1.0f, 0.00f*C, /*0.9f, 0.04f*C,  0.8f, 0.07f*C,*/ 0.5f, 0.09f*C, 0.0f, 0.10f*C};
361 363

  
362 364
/*
363 365
      float B = 0.1f;

Also available in: Unified diff