Changeset 444 for trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
- Timestamp:
- 12/02/05 19:46:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
r440 r444 80 80 bool 81 81 X3dExporter::ExportRays(const RayContainer &rays, 82 83 82 const float length, 83 const RgbColor &color) 84 84 { 85 85 RayContainer::const_iterator ri = rays.begin(); … … 130 130 bool 131 131 X3dExporter::ExportRays(const VssRayContainer &rays, 132 132 const RgbColor &color) 133 133 { 134 134 VssRayContainer::const_iterator ri = rays.begin(); … … 154 154 ri = rays.begin(); 155 155 for (; ri != rays.end(); ri++) { 156 Vector3 a = (*ri)->GetOrigin();157 Vector3 b = (*ri)->mTerminationObject ? (*ri)->GetTermination() : a + 1000 * Normalize(b - a);156 const Vector3 a = (*ri)->GetOrigin(); 157 const Vector3 b = (*ri)->mTerminationObject ? (*ri)->GetTermination() : a + 1000 * Normalize((*ri)->GetDir()); 158 158 159 159 stream<<a.x<<" "<<a.y<<" "<<a.z<<" ,"; 160 160 stream<<b.x<<" "<<b.y<<" "<<b.z<<" ,\n"; 161 161 } 162 162
Note: See TracChangeset
for help on using the changeset viewer.