Revision 0dc23f74
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyVoid.java | ||
---|---|---|
58 | 58 |
super(numL, meshState, numL[0], quat, move, scale, stream); |
59 | 59 |
} |
60 | 60 |
|
61 |
|
|
62 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
63 |
|
|
64 |
@Override |
|
65 |
public void adjustStickerCoords() |
|
66 |
{ |
|
67 |
final float A = 0.497f; |
|
68 |
final float B = 0.38950402f; |
|
69 |
final float C = 0.25900806f; |
|
70 |
final float D = 0.51f; |
|
71 |
|
|
72 |
mStickerCoords = new float[][] |
|
73 |
{ |
|
74 |
{ -0.5f, A, A, -0.5f, -0.5f, -0.5f }, |
|
75 |
{ -C, -B, D, -B, D, B, -C, B } |
|
76 |
}; |
|
77 |
} |
|
78 |
|
|
61 | 79 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
62 | 80 |
|
63 | 81 |
@Override |
... | ... | |
251 | 269 |
} |
252 | 270 |
else // edge |
253 | 271 |
{ |
254 |
final float A = 0.15f;
|
|
255 |
final float B = SQ2/2-0.5f;
|
|
272 |
final float A = 0.13f;
|
|
273 |
final float B = 0.18f;
|
|
256 | 274 |
|
257 | 275 |
float[][] vertices = |
258 | 276 |
{ |
... | ... | |
317 | 335 |
float[][] bands = { {0.01f,5,0.2f,0.4f,5,1,0}, {0.001f,1,0.3f,0.5f,5,0,0}, {0.001f,1,0.3f,0.5f,5,0,0} }; |
318 | 336 |
int[] bandIndices = { 0,0,1,1,2,2,2,2,2,2,2,2 }; |
319 | 337 |
float[][] corners = { {0.04f,0.12f} }; |
320 |
int[] indices = { 0,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 };
|
|
338 |
int[] indices = { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 };
|
|
321 | 339 |
float[][] centers = { { 0.0f, 0.0f, 0.0f } }; |
322 | 340 |
return new ObjectFaceShape(bands,bandIndices,corners,indices,centers,indices,null); |
323 | 341 |
} |
... | ... | |
341 | 359 |
|
342 | 360 |
public float getStickerRadius() |
343 | 361 |
{ |
344 |
return 0.12f;
|
|
362 |
return 0.01f;
|
|
345 | 363 |
} |
346 | 364 |
|
347 | 365 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
348 | 366 |
|
349 | 367 |
public float getStickerStroke() |
350 | 368 |
{ |
351 |
return ObjectControl.isInIconMode() ? 0.22f : 0.10f;
|
|
369 |
return ObjectControl.isInIconMode() ? 0.22f : 0.12f;
|
|
352 | 370 |
} |
353 | 371 |
|
354 | 372 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
355 | 373 |
|
356 | 374 |
public float[][] getStickerAngles() |
357 | 375 |
{ |
358 |
return null; |
|
376 |
float D = (float)(Math.PI/6); |
|
377 |
return new float[][] { { D,0,0 },{ 0,0,0,D } }; |
|
359 | 378 |
} |
360 | 379 |
|
361 | 380 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Void Cube: modelling done.