Project

General

Profile

« Previous | Next » 

Revision 61b217a5

Added by Leszek Koltunski about 3 years ago

Add Gigaminx dmesh.

View differences:

src/main/java/org/distorted/objects/TwistyMegaminx.java
401 401
        float height= (numLayers/3.0f)*(0.5f-MEGA_D)*COS18/((numLayers-1)*0.5f);
402 402
        float width = (numLayers/3.0f)*2*MEGA_D + 2*type*height*SIN18/COS18;
403 403

  
404
        mEdgeMeshes[index][type] = FactoryCubit.getInstance().createMegaminxEdgeMesh(width,height);
404
        mEdgeMeshes[index][type] = FactoryCubit.getInstance().createMegaminxEdgeMesh(numLayers,width,height);
405 405
        }
406 406

  
407 407
      mesh = mEdgeMeshes[index][type].copy(true);
......
411 411
      if( mCenterMeshes[index]==null )
412 412
        {
413 413
        float width = 2 * (numLayers/3.0f) * (MEGA_D+(0.5f-MEGA_D)*SIN18);
414
        mCenterMeshes[index] = FactoryCubit.getInstance().createMegaminxCenterMesh(width);
414
        mCenterMeshes[index] = FactoryCubit.getInstance().createMegaminxCenterMesh(numLayers,width);
415 415
        }
416 416

  
417 417
      mesh = mCenterMeshes[index].copy(true);

Also available in: Unified diff