Revision 6c295be1
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/bandaged/BandagedCreatorTouchControl.java | ||
---|---|---|
23 | 23 |
private final float[] mPoint2D; |
24 | 24 |
private float mObjectRatio; |
25 | 25 |
private final Static3D[] mFaceAxis; |
26 |
private final int mNumFaces; |
|
26 | 27 |
|
27 | 28 |
private float[] mDist3D; |
28 | 29 |
private int mLastTouchedFace; |
... | ... | |
127 | 128 |
mCamera[1] = rotatedCamera.get1()/mObjectRatio; |
128 | 129 |
mCamera[2] = rotatedCamera.get2()/mObjectRatio; |
129 | 130 |
|
130 |
for( mLastTouchedFace=0; mLastTouchedFace<6; mLastTouchedFace++)
|
|
131 |
for( mLastTouchedFace=0; mLastTouchedFace<mNumFaces; mLastTouchedFace++)
|
|
131 | 132 |
{ |
132 | 133 |
if( faceIsVisible(mLastTouchedFace) ) |
133 | 134 |
{ |
... | ... | |
160 | 161 |
mDist3D = new float[6]; |
161 | 162 |
mFaceAxis = mObject.getFaceAxis(); |
162 | 163 |
mObjectRatio = ratio; |
164 |
mNumFaces = mFaceAxis.length; |
|
163 | 165 |
|
164 | 166 |
double halfFOV = fov * (Math.PI/360); |
165 | 167 |
float tanHalf = (float)Math.tan(halfFOV); |
Also available in: Unified diff
Progress with BandagedObjectPyraminx.