Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r2539 r2575 209 209 const Vector3 cross_a_b = CrossProd(a, b); 210 210 211 if (SqrMagnitude(cross_a_b) <= 0.000001 * FLT_EPSILON * FLT_EPSILON) 211 #define SMALL_FLT 1e-5 212 213 if (SqrMagnitude(cross_a_b) <= 0.0001 * SMALL_FLT * SMALL_FLT) 212 214 { 213 215 // v0, v1 & v2 lies on a line (area == 0) … … 293 295 for (tit = triangles.begin(); tit != tit_end; ++ tit) 294 296 { 295 // test if it is a valid triangle 296 if (0 && !TriangleValid(*tit)) continue; 297 298 TriangleIntersectable *obj = new TriangleIntersectable(*tit); 299 root->mGeometry.push_back(obj); 297 // test if it is a valid triangle 298 if (!TriangleValid(*tit)) 299 continue; 300 301 TriangleIntersectable *obj = new TriangleIntersectable(*tit); 302 root->mGeometry.push_back(obj); 300 303 } 301 304 }
Note: See TracChangeset
for help on using the changeset viewer.