diff --git a/hex_mesh.cu b/hex_mesh.cu index 4fa7c67..92d72c6 100644 --- a/hex_mesh.cu +++ b/hex_mesh.cu @@ -187,7 +187,7 @@ RT_PROGRAM void intersect(int object_dex) accept = accept_l(this_int, maxs.x, x1, x2, mins.z, maxs.z); } if( accept ){ - if(fabsf((this_t-t0)/t0) >= tol & fabsf((this_t-t1)/t1) >= tol){ // check that this is a "new" point + if(fabsf((t0-this_t)/this_t) >= tol & fabsf((t1-this_t)/this_t) >= tol){ // check that this is a "new" point and the difference if(fabsf(this_t)