Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r775 - trunk/Model/Primitives
- Date: Mon, 12 Dec 2005 23:51:34 -0700 (MST)
Author: sparker
Date: Mon Dec 12 23:51:33 2005
New Revision: 775
Modified:
trunk/Model/Primitives/Cube.cc
Log:
Fix intersections for rays leaving the box
Modified: trunk/Model/Primitives/Cube.cc
==============================================================================
--- trunk/Model/Primitives/Cube.cc (original)
+++ trunk/Model/Primitives/Cube.cc Mon Dec 12 23:51:33 2005
@@ -59,15 +59,15 @@
e.hitInfo.minT()*/)) {
// Check to see if we are inside the box.
- if (tmin > 0.0) {
+ if (tmin > T_EPSILON) {
e.hitInfo.hit( tmin, getMaterial(), this, getTexCoordMapper() );
}
// And use the max intersection if we are.
- else
+ else {
e.hitInfo.hit( tmax, getMaterial(), this, getTexCoordMapper() );
+ }
}
-
}
- [MANTA] r775 - trunk/Model/Primitives, sparker, 12/12/2005
Archive powered by MHonArc 2.6.16.