Revision b3c9061a
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyDiamond.java | ||
---|---|---|
433 | 433 |
int[] bandIndexes = new int[] { 0,0,0,0,0,0,0,0 }; |
434 | 434 |
float[][] corners = new float[][] { {0.04f,0.20f} }; |
435 | 435 |
int[] cornerIndexes = new int[] { 0,0,0,0,0,0 }; |
436 |
float[][] centers = new float[][] { {0.0f, 0.0f, 0.0f} }; |
|
437 |
int[] centerIndexes = new int[] { 0,0,0,0,0,0 }; |
|
436 | 438 |
|
437 | 439 |
FactoryCubit factory = FactoryCubit.getInstance(); |
438 | 440 |
|
... | ... | |
440 | 442 |
mMeshes[0] = factory.createRoundedSolid(VERTICES_OCTA, VERT_INDEXES_OCTA, |
441 | 443 |
bands, bandIndexes, |
442 | 444 |
corners, cornerIndexes, |
445 |
centers, centerIndexes, |
|
443 | 446 |
getNumCubitFaces() ); |
444 | 447 |
} |
445 | 448 |
mesh = mMeshes[0].copy(true); |
... | ... | |
452 | 455 |
int[] bandIndexes = new int[] { 0,0,0,0 }; |
453 | 456 |
float[][] corners = new float[][] { {0.08f,0.15f} }; |
454 | 457 |
int[] cornerIndexes = new int[] { 0,0,0,0 }; |
458 |
float[][] centers = new float[][] { {0.0f, 0.0f, 0.0f} }; |
|
459 |
int[] centerIndexes = new int[] { 0,0,0,0 }; |
|
455 | 460 |
|
456 | 461 |
FactoryCubit factory = FactoryCubit.getInstance(); |
457 | 462 |
|
... | ... | |
459 | 464 |
mMeshes[1] = factory.createRoundedSolid(VERTICES_TETRA, VERT_INDEXES_TETRA, |
460 | 465 |
bands, bandIndexes, |
461 | 466 |
corners, cornerIndexes, |
467 |
centers, centerIndexes, |
|
462 | 468 |
getNumCubitFaces() ); |
463 | 469 |
} |
464 | 470 |
mesh = mMeshes[1].copy(true); |
Also available in: Unified diff
New Cubit Engine: add adjustable centers.