Commit c8102e09 authored by Alexander Wiebel's avatar Alexander Wiebel

[CHANGE #420] use debugLog instead of cout

parent 93ff6125
...@@ -124,7 +124,7 @@ inline bool intersectPlaneWithRay( WPosition* cutpoint, ...@@ -124,7 +124,7 @@ inline bool intersectPlaneWithRay( WPosition* cutpoint,
return true; return true;
} }
WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition& origin, const WVector3d& dir ) WPosition WMPickingDVREvaluation::intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition& origin, const WVector3d& dir )
{ {
WPosition result; WPosition result;
// FIXME: check order of plane vectors for outward normals // FIXME: check order of plane vectors for outward normals
...@@ -143,7 +143,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition ...@@ -143,7 +143,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition
&& bbox.contains( intersectionPoint ) && bbox.contains( intersectionPoint )
&& dot( dir, intersectionPoint - origin ) > 0.0 ) && dot( dir, intersectionPoint - origin ) > 0.0 )
{ {
std::cout << "HIT minX: " << hit << " " << intersectionPoint << std::endl; debugLog() << "HIT minX: " << hit << " " << intersectionPoint;
return result = intersectionPoint; return result = intersectionPoint;
} }
...@@ -158,7 +158,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition ...@@ -158,7 +158,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition
&& bbox.contains( intersectionPoint ) && bbox.contains( intersectionPoint )
&& dot( dir, intersectionPoint - origin ) > 0.0 ) && dot( dir, intersectionPoint - origin ) > 0.0 )
{ {
std::cout << "HIT minY: " << hit << " " << intersectionPoint << std::endl; debugLog() << "HIT minY: " << hit << " " << intersectionPoint;
return result = intersectionPoint; return result = intersectionPoint;
} }
...@@ -173,7 +173,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition ...@@ -173,7 +173,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition
&& bbox.contains( intersectionPoint ) && bbox.contains( intersectionPoint )
&& dot( dir, intersectionPoint - origin ) > 0.0 ) && dot( dir, intersectionPoint - origin ) > 0.0 )
{ {
std::cout << "HIT minZ: " << hit << " " << intersectionPoint << std::endl; debugLog() << "HIT minZ: " << hit << " " << intersectionPoint;
return result = intersectionPoint; return result = intersectionPoint;
} }
...@@ -188,7 +188,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition ...@@ -188,7 +188,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition
&& bbox.contains( intersectionPoint ) && bbox.contains( intersectionPoint )
&& dot( dir, intersectionPoint - origin ) > 0.0 ) && dot( dir, intersectionPoint - origin ) > 0.0 )
{ {
std::cout << "HIT minX: " << hit << " " << intersectionPoint << std::endl; debugLog() << "HIT minX: " << hit << " " << intersectionPoint;
return result = intersectionPoint; return result = intersectionPoint;
} }
...@@ -203,7 +203,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition ...@@ -203,7 +203,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition
&& bbox.contains( intersectionPoint ) && bbox.contains( intersectionPoint )
&& dot( dir, intersectionPoint - origin ) > 0.0 ) && dot( dir, intersectionPoint - origin ) > 0.0 )
{ {
std::cout << "HIT minY: " << hit << " " << intersectionPoint << std::endl; debugLog() << "HIT minY: " << hit << " " << intersectionPoint;
return result = intersectionPoint; return result = intersectionPoint;
} }
...@@ -218,7 +218,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition ...@@ -218,7 +218,7 @@ WPosition intersectBoundingBoxWithRay( const WBoundingBox& bbox, const WPosition
&& bbox.contains( intersectionPoint ) && bbox.contains( intersectionPoint )
&& dot( dir, intersectionPoint - origin ) > 0.0 ) && dot( dir, intersectionPoint - origin ) > 0.0 )
{ {
std::cout << "HIT minZ: " << hit << " " << intersectionPoint << std::endl; debugLog() << "HIT minZ: " << hit << " " << intersectionPoint;
return result = intersectionPoint; return result = intersectionPoint;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment