Revision 4cd6a69c
Added by Leszek Koltunski about 2 months ago
src/main/java/org/distorted/objectlib/helpers/FactoryCubit.java | ||
---|---|---|
183 | 183 |
mBuffer[1] /= len; |
184 | 184 |
mBuffer[2] /= len; |
185 | 185 |
|
186 |
// this theoretically should be uncommented to combat the same effect like in |
|
187 |
// TouchControlShapeChanging.FaceInfo, but when I try, the center sticker of |
|
188 |
// CoinTetrahedron gets inverted. Weird! |
|
189 |
// Uncommenting this does fix the fact that the convexity of the center cubits |
|
190 |
// of CoinT and CoinH goes concave |
|
191 |
|
|
192 |
/* |
|
186 |
// combat the same effect like in TouchControlShapeChanging.FaceInfo |
|
193 | 187 |
if( totalAngle(vertices,mBuffer)<0 ) |
194 | 188 |
{ |
195 | 189 |
mBuffer[0] *= -1; |
196 | 190 |
mBuffer[1] *= -1; |
197 | 191 |
mBuffer[2] *= -1; |
198 | 192 |
} |
199 |
*/ |
|
200 | 193 |
} |
201 | 194 |
|
202 | 195 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Important bugfix for the shape of concave cubit walls!