Revision b3c9061a
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyPyraminx.java | ||
---|---|---|
313 | 313 |
int[] bandIndexes = new int[] { 0,0,0,0,0,0,0,0 }; |
314 | 314 |
float[][] corners = new float[][] { {0.04f,0.20f} }; |
315 | 315 |
int[] cornerIndexes = new int[] { 0,0,0,0,0,0 }; |
316 |
float[][] centers = new float[][] { {0.0f, 0.0f, 0.0f} }; |
|
317 |
int[] centerIndexes = new int[] { 0,0,0,0,0,0 }; |
|
316 | 318 |
|
317 | 319 |
FactoryCubit factory = FactoryCubit.getInstance(); |
318 | 320 |
|
... | ... | |
320 | 322 |
mMeshes[0] = factory.createRoundedSolid(VERTICES_OCTA, VERT_INDEXES_OCTA, |
321 | 323 |
bands, bandIndexes, |
322 | 324 |
corners, cornerIndexes, |
325 |
centers, centerIndexes, |
|
323 | 326 |
getNumCubitFaces() ); |
324 | 327 |
} |
325 | 328 |
mesh = mMeshes[0].copy(true); |
... | ... | |
332 | 335 |
int[] bandIndexes = new int[] { 0,0,0,0 }; |
333 | 336 |
float[][] corners = new float[][] { {0.06f,0.15f} }; |
334 | 337 |
int[] cornerIndexes = new int[] { 0,0,0,0 }; |
338 |
float[][] centers = new float[][] { {0.0f, 0.0f, 0.0f} }; |
|
339 |
int[] centerIndexes = new int[] { 0,0,0,0 }; |
|
335 | 340 |
|
336 | 341 |
FactoryCubit factory = FactoryCubit.getInstance(); |
337 | 342 |
|
... | ... | |
339 | 344 |
mMeshes[1] = factory.createRoundedSolid(VERTICES_TETRA, VERT_INDEXES_TETRA, |
340 | 345 |
bands, bandIndexes, |
341 | 346 |
corners, cornerIndexes, |
347 |
centers, centerIndexes, |
|
342 | 348 |
getNumCubitFaces() ); |
343 | 349 |
|
344 | 350 |
factory.printStickerCoords(); |
Also available in: Unified diff
New Cubit Engine: add adjustable centers.