Revision cf7ec8fa
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
254 | 254 |
|
255 | 255 |
private void createMesh() |
256 | 256 |
{ |
257 |
int mode = 16;
|
|
257 |
int mode = 14;
|
|
258 | 258 |
int numComponents = 0; |
259 | 259 |
double[][] vertices = null; |
260 | 260 |
int[][] vertIndexes = null; |
... | ... | |
1072 | 1072 |
|
1073 | 1073 |
else if( mode==14 ) |
1074 | 1074 |
{ |
1075 |
final float F = 0.2f; |
|
1075 |
final float F = 0.24f;
|
|
1076 | 1076 |
final float X = F/2; |
1077 | 1077 |
final float Y = F*SQ2/2; |
1078 | 1078 |
final float Z =-F/2; |
... | ... | |
1109 | 1109 |
|
1110 | 1110 |
corners = new float[][] |
1111 | 1111 |
{ |
1112 |
{0.10f,0.20f*F},
|
|
1112 |
{0.08f,0.20f*F},
|
|
1113 | 1113 |
{0.07f,0.20f*F} |
1114 | 1114 |
}; |
1115 | 1115 |
|
... | ... | |
1129 | 1129 |
|
1130 | 1130 |
else if( mode==15 ) |
1131 | 1131 |
{ |
1132 |
final float F = 0.2f; |
|
1132 |
final float F = 0.24f;
|
|
1133 | 1133 |
final float X = F/2; |
1134 | 1134 |
final float Y = F*SQ2/2; |
1135 | 1135 |
final float Z =-F/2; |
... | ... | |
1185 | 1185 |
|
1186 | 1186 |
else if( mode==16 ) |
1187 | 1187 |
{ |
1188 |
final float F = 0.1f;
|
|
1188 |
final float F = 0.24f;
|
|
1189 | 1189 |
final float L = (1-3*F); |
1190 | 1190 |
final float X = L/2; |
1191 | 1191 |
final float Y = L*SQ2/2; |
Also available in: Unified diff
New 'JingPyraminx' object - add the mesh.