Revision 6b2ab5c5
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/TwistyBandagedAbstract.java | ||
---|---|---|
218 | 218 |
{ |
219 | 219 |
{2,3,1,0}, |
220 | 220 |
{7,6,4,5}, |
221 |
{6,2,0,4}, |
|
222 |
{3,7,5,1}, |
|
223 | 221 |
{4,0,1,5}, |
224 | 222 |
{7,3,2,6}, |
223 |
{6,2,0,4}, |
|
224 |
{3,7,5,1}, |
|
225 | 225 |
}; |
226 | 226 |
|
227 | 227 |
float defHeight = 0.048f; |
... | ... | |
236 | 236 |
int Y = mDimensions[i][1]; |
237 | 237 |
int Z = mDimensions[i][2]; |
238 | 238 |
|
239 |
int maxXY = Math.max(X,Y); |
|
240 |
int maxXZ = Math.max(X,Z); |
|
241 |
int maxYZ = Math.max(Y,Z); |
|
242 |
|
|
239 | 243 |
double[][] vertices = |
240 | 244 |
{ |
241 | 245 |
{+0.5f*X,+0.5f*Y,+0.5f*Z}, |
... | ... | |
250 | 254 |
|
251 | 255 |
float[][] bands= new float[][] |
252 | 256 |
{ |
253 |
{defHeight/X,65,0.25f,0.5f,5,1,2},
|
|
254 |
{defHeight/Y,65,0.25f,0.5f,5,1,2},
|
|
255 |
{defHeight/Z,65,0.25f,0.5f,5,1,2}
|
|
257 |
{defHeight/maxYZ,65,0.25f,0.5f,5,1,2},
|
|
258 |
{defHeight/maxXZ,65,0.25f,0.5f,5,1,2},
|
|
259 |
{defHeight/maxXY,65,0.25f,0.5f,5,1,2}
|
|
256 | 260 |
}; |
257 | 261 |
|
258 | 262 |
float[][] centers = new float[][] |
Also available in: Unified diff
Corrections for the Bandaged cubit creation.