Revision 5e06e92f
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyMegaminx.java | ||
---|---|---|
286 | 286 |
if( mCornerMeshes[index]==null ) |
287 | 287 |
{ |
288 | 288 |
float width = (numLayers/3.0f)*(0.5f-MEGA_D)/(0.5f*(numLayers-1)); |
289 |
mCornerMeshes[index] = FactoryCubit.getInstance().createMinxCornerMesh(numLayers, width);
|
|
289 |
mCornerMeshes[index] = createCornerMesh(numLayers, width);
|
|
290 | 290 |
} |
291 | 291 |
mesh = mCornerMeshes[index].copy(true); |
292 | 292 |
} |
... | ... | |
418 | 418 |
|
419 | 419 |
if( variant==0 ) |
420 | 420 |
{ |
421 |
float Y = COS54/(2*SIN54); |
|
422 |
R = 0.070f; |
|
423 |
S = 0.08f; |
|
424 |
vertices = new float[] { -0.5f, 0.0f, 0.0f, -Y, 0.5f, 0.0f, 0.0f, Y }; |
|
421 |
R = 0.080f; |
|
422 |
S = 0.10f; |
|
423 |
vertices = new float[] { -0.36327127f, -0.5f, 0.36327127f, -0.26393202f, 0.36327127f, 0.5f, -0.36327127f, 0.26393202f }; |
|
425 | 424 |
} |
426 | 425 |
else |
427 | 426 |
{ |
... | ... | |
436 | 435 |
float Y1 = 0.5f*width; |
437 | 436 |
float Y2 = 0.5f*width + W; |
438 | 437 |
|
439 |
R = 0.05f; |
|
440 |
S = 0.06f;
|
|
438 |
R = 0.045f;
|
|
439 |
S = 0.055f;
|
|
441 | 440 |
vertices = new float[] { -X1, Y1, -X1, -Y1, X1, -Y2, X1, Y2 }; |
442 | 441 |
} |
443 | 442 |
else |
... | ... | |
448 | 447 |
float X2 = Z*COS18; |
449 | 448 |
float Y2 = Z*SIN18; |
450 | 449 |
|
451 |
R = 0.10f;
|
|
450 |
R = 0.09f;
|
|
452 | 451 |
S = 0.08f; |
453 | 452 |
vertices = new float[] { -X1,+Y1, -X2,-Y2, 0.0f,-Z, +X2,-Y2, +X1,+Y1 }; |
454 | 453 |
} |
Also available in: Unified diff
New cubit engine: convert Kiliminx & some Megaminx.