Revision 1576f41c
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/objects/RubikDino.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
private MeshBase createTetrahedronMesh() |
132 | 132 |
{ |
133 |
final float SQ2 = (float)Math.sqrt(2); |
|
134 |
final float SQ3 = (float)Math.sqrt(3); |
|
135 | 133 |
final int MESHES=4; |
136 | 134 |
|
137 | 135 |
int association = 1; |
... | ... | |
139 | 137 |
float D = 0.005f; |
140 | 138 |
float E = 0.5f - D*SQ2; |
141 | 139 |
float F = 0.5f - D*SQ2*SQ3; |
142 |
float G = 0.005f; |
|
143 |
float[] bands = { 1.0f ,-G, |
|
144 |
1.0f-G/2,-G*0.55f, |
|
145 |
1.0f-G ,-G*0.25f, |
|
146 |
1.0f-2*G,+G*0.25f, |
|
140 |
float[] bands = { 1.0f ,-D, |
|
141 |
1.0f-D/2,-D*0.55f, |
|
142 |
1.0f-D ,-D*0.25f, |
|
143 |
1.0f-2*D,+D*0.25f, |
|
147 | 144 |
0.50f, 0.040f, |
148 | 145 |
0.0f, 0.045f }; |
149 | 146 |
|
Also available in: Unified diff
Minor.