Revision 72b93c08
Added by Leszek Koltunski almost 5 years ago
| src/main/java/org/distorted/objects/FactoryCubit.java | ||
|---|---|---|
| 1514 | 1514 |
VertexEffect[] effects = createVertexEffectsRexCorner(); |
| 1515 | 1515 |
for( VertexEffect effect : effects ) mesh.apply(effect); |
| 1516 | 1516 |
|
| 1517 |
Static3D center = new Static3D(0.0f,0.0f,-0.25f); |
|
| 1517 |
final float F = (0.5f-REX_D)*SQ2*(SQ3-1); |
|
| 1518 |
final float H = F*SQ3/3; |
|
| 1519 |
final float G = H*SQ2/2; |
|
| 1520 |
|
|
| 1521 |
Static3D center = new Static3D(0.0f,0.0f,-H); |
|
| 1518 | 1522 |
Static3D[] vertices = new Static3D[1]; |
| 1519 |
vertices[0] = new Static3D(+0.25f,+0.25f,+0.0f);
|
|
| 1520 |
roundCorners(mesh,center,vertices,0.03f,0.10f);
|
|
| 1523 |
vertices[0] = new Static3D(+G,-G,+0.0f);
|
|
| 1524 |
roundCorners(mesh,center,vertices,0.12f,0.15f);
|
|
| 1521 | 1525 |
|
| 1522 | 1526 |
mesh.mergeEffComponents(); |
| 1523 | 1527 |
mesh.addEmptyTexComponent(); |
| ... | ... | |
| 1551 | 1555 |
Static3D[] vertices = new Static3D[2]; |
| 1552 | 1556 |
vertices[0] = new Static3D(+0.5f,+0.0f,+0.0f); |
| 1553 | 1557 |
vertices[1] = new Static3D(-0.5f,+0.0f,+0.0f); |
| 1554 |
roundCorners(mesh,center,vertices,0.03f,0.10f);
|
|
| 1558 |
roundCorners(mesh,center,vertices,0.08f,0.15f);
|
|
| 1555 | 1559 |
|
| 1556 | 1560 |
mesh.mergeEffComponents(); |
| 1557 | 1561 |
|
Also available in: Unified diff
Progress with the Rex Cube (rounding corners)