Changeset 1420 for GTP/trunk/Lib/Vis/Preprocessing/src/VrmlExporter.cpp
- Timestamp:
- 09/20/06 13:37:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VrmlExporter.cpp
r1419 r1420 125 125 const Vector3 a = (*ri)->GetOrigin(); 126 126 const Vector3 b = (*ri)->mTerminationObject ? (*ri)->GetTermination() : a + 1000 * Normalize((*ri)->GetDir()); 127 127 128 #if _DEBUG 128 129 bool isnan = false; 129 130 if ((a[0] != a[0]) || (a[1] != a[1]) || (a[2] != a[2])) 130 if (!a.CheckValidity()) 131 131 { 132 132 cout << "error a"<<endl; … … 134 134 } 135 135 136 if ((b[0] != b[0]) || (b[1] != b[1]) || (b[2] != b[2]))136 if (!b.CheckValidity()) 137 137 { 138 138 cout << "error b"<<endl; 139 139 isnan = true; 140 140 } 141 142 if (!isnan) 143 { 144 stream << a.x << " " << a.y << " " << a.z << " ,"; 145 stream << b.x << " " << b.y << " " << b.z << " ,\n"; 146 } 141 if (isnan) 142 continue; 143 #endif 144 stream << a.x << " " << a.y << " " << a.z << " ,"; 145 stream << b.x << " " << b.y << " " << b.z << " ,\n"; 147 146 } 148 147
Note: See TracChangeset
for help on using the changeset viewer.