Revision 716f5517
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/objectlib/main/TwistyObject.java | ||
---|---|---|
403 | 403 |
FactoryCubit factory = FactoryCubit.getInstance(); |
404 | 404 |
factory.clear(); |
405 | 405 |
|
406 |
mOrigQuat = new Static4D[mNumCubits]; |
|
407 |
for(int i=0; i<mNumCubits; i++) mOrigQuat[i] = getCubitQuats(i,mNumLayers); |
|
408 |
|
|
409 | 406 |
mShapes = new ObjectShape[mNumCubitVariants]; |
410 | 407 |
for(int i=0; i<mNumCubitVariants; i++) mShapes[i] = getObjectShape(i); |
411 | 408 |
mNumCubitFaces = ObjectShape.computeNumComponents(mShapes); |
412 | 409 |
mVariantFaceIsOuter = new int[mNumCubitVariants][]; |
413 | 410 |
|
411 |
mOrigQuat = new Static4D[mNumCubits]; |
|
412 |
for(int i=0; i<mNumCubits; i++) mOrigQuat[i] = getCubitQuats(i,mNumLayers); |
|
413 |
|
|
414 | 414 |
if( !fromJSON ) |
415 | 415 |
{ |
416 | 416 |
mCubitFaceColors = ObjectShape.computeColors(mShapes,mOrigPos,mOrigQuat,this); |
Also available in: Unified diff
Progress with Icosamate