Revision 668423be
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objects/TwistyRedi.java | ||
---|---|---|
252 | 252 |
|
253 | 253 |
float[][] getCuts(int size) |
254 | 254 |
{ |
255 |
float[] cut = new float[] { -SQ3/3 -0.05f, +SQ3/3 +0.05f }; |
|
255 |
float C = +SQ3/3 +0.05f; |
|
256 |
float[] cut = new float[] {-C,+C}; |
|
256 | 257 |
return new float[][] { cut,cut,cut,cut }; |
257 | 258 |
} |
258 | 259 |
|
... | ... | |
278 | 279 |
|
279 | 280 |
if( variant==0 ) |
280 | 281 |
{ |
281 |
float[][] bands= new float[][] |
|
282 |
{ |
|
283 |
{0.06f,35,0.5f,0.7f,5,2,2}, |
|
284 |
{0.01f,35,0.2f,0.4f,5,2,2} |
|
285 |
}; |
|
282 |
float[][] bands = new float[][] { {0.06f,35,0.5f,0.7f,5,2,2}, {0.01f,35,0.2f,0.4f,5,2,2} }; |
|
286 | 283 |
int[] bandIndices = new int[] { 0,0,0,1,1,1,1,1,1 }; |
287 | 284 |
float[][] corners = new float[][] { {0.06f,0.12f} }; |
288 | 285 |
int[] cornerIndices = new int[] { -1,0,-1,0,0,0,-1,-1 }; |
289 | 286 |
float[][] centers = new float[][] { { 0.0f, 0.0f, 0.0f} }; |
290 | 287 |
int[] centerIndices = new int[] { -1,0,-1,0,0,0,-1,-1 }; |
291 |
|
|
292 | 288 |
return new ObjectShape(VERTICES_CORNER,VERT_INDEXES_CORNER,bands,bandIndices,corners,cornerIndices,centers,centerIndices,getNumCubitFaces(), null); |
293 | 289 |
} |
294 | 290 |
else |
295 | 291 |
{ |
296 |
float[][] bands= new float[][] |
|
297 |
{ |
|
298 |
{0.038f,35,0.250f,0.7f, 7,2,2}, |
|
299 |
{0.020f,35,0.125f,0.2f, 3,1,2}, |
|
300 |
{0.020f,35,0.125f,0.2f, 3,1,1} |
|
301 |
}; |
|
292 |
float[][] bands = new float[][] { {0.038f,35,0.250f,0.7f,7,2,2}, {0.020f,35,0.125f,0.2f,3,1,2}, {0.020f,35,0.125f,0.2f,3,1,1} }; |
|
302 | 293 |
int[] bandIndices = new int[] { 0,0,1,1,2,2 }; |
303 | 294 |
float[][] corners = new float[][] { {0.06f,0.20f} }; |
304 | 295 |
int[] cornerIndices = new int[] { 0,0,-1,-1,-1,-1,-1,-1 }; |
305 | 296 |
float[][] centers = new float[][] { { 0.0f,-0.75f,-0.75f} }; |
306 | 297 |
int[] centerIndices = new int[] { 0,0,-1,-1,-1,-1,-1,-1 }; |
307 |
|
|
308 | 298 |
return new ObjectShape(VERTICES_EDGE,VERT_INDEXES_EDGE,bands,bandIndices,corners,cornerIndices,centers,centerIndices,getNumCubitFaces(), null); |
309 | 299 |
} |
310 | 300 |
} |
Also available in: Unified diff
Add flag of Madagascar.