Project

General

Profile

« Previous | Next » 

Revision f56b53cb

Added by Leszek Koltunski almost 3 years ago

Master FTO: mesh

View differences:

src/main/java/org/distorted/objects/TwistyDiamond.java
403 403

  
404 404
    MeshBase mesh;
405 405
    int numO = getNumOctahedrons(numLayers);
406
    int N = numLayers>3 ? 5:6;
407
    int E = numLayers>3 ? 1:2;
406 408

  
407 409
    if( cubit<numO )
408 410
      {
409 411
      if( mMeshes[0]==null )
410 412
        {
411
        float[][] bands     = new float[][] { {0.05f,35,0.5f,0.8f,6,2,2} };
413
        float[][] bands     = new float[][] { {0.05f,35,0.5f,0.8f,N,E,E} };
412 414
        int[] bandIndexes   = new int[] { 0,0,0,0,0,0,0,0 };
413 415
        float[][] corners   = new float[][] { {0.04f,0.20f} };
414 416
        int[] cornerIndexes = new int[] { 0,0,0,0,0,0 };
......
430 432
      {
431 433
      if( mMeshes[1]==null )
432 434
        {
433
        float[][] bands     = new float[][] { {0.05f,35,0.5f,0.8f,6,2,2} };
435
        float[][] bands     = new float[][] { {0.05f,35,0.5f,0.8f,N,E,E} };
434 436
        int[] bandIndexes   = new int[] { 0,0,0,0 };
435 437
        float[][] corners   = new float[][] { {0.08f,0.15f} };
436 438
        int[] cornerIndexes = new int[] { 0,0,0,0 };

Also available in: Unified diff