Revision 2113cf12
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/objects/FactoryCubit.java | ||
---|---|---|
530 | 530 |
float[] bands0 = computeBands(+0.01f,12,0.2f,0.5f,5); |
531 | 531 |
float[] bands1 = computeBands(-0.10f,20,0.2f,0.0f,2); |
532 | 532 |
|
533 |
meshes[0] = new MeshPolygon(vertices,bands0,0,0);
|
|
533 |
meshes[0] = new MeshPolygon(vertices,bands0,1,2);
|
|
534 | 534 |
meshes[0].setEffectAssociation(0,1,0); |
535 | 535 |
meshes[1] = meshes[0].copy(true); |
536 | 536 |
meshes[1].setEffectAssociation(0,2,0); |
537 | 537 |
meshes[2] = meshes[0].copy(true); |
538 | 538 |
meshes[2].setEffectAssociation(0,4,0); |
539 |
meshes[3] = new MeshPolygon(vertices,bands1,0,0);
|
|
539 |
meshes[3] = new MeshPolygon(vertices,bands1,1,2);
|
|
540 | 540 |
meshes[3].setEffectAssociation(0,8,0); |
541 | 541 |
meshes[4] = meshes[3].copy(true); |
542 | 542 |
meshes[4].setEffectAssociation(0,16,0); |
... | ... | |
1268 | 1268 |
Static3D center = new Static3D(-0.5f,-0.5f,-0.5f); |
1269 | 1269 |
Static3D[] vertices = new Static3D[1]; |
1270 | 1270 |
vertices[0] = new Static3D(+0.0f,+0.0f,+0.0f); |
1271 |
roundCorners(mesh,center,vertices,0.04f,0.20f);
|
|
1271 |
roundCorners(mesh,center,vertices,0.06f,0.15f);
|
|
1272 | 1272 |
|
1273 | 1273 |
mesh.mergeEffComponents(); |
1274 | 1274 |
|
Also available in: Unified diff
New Ivy mesh.