diff --git a/src/triangle_bvh.cu b/src/triangle_bvh.cu index 53f66b638995a684074fcdb8b7197bb6be0cd5e0..2847b2de20d20ff9057a43728303f1a078b88898 100644 --- a/src/triangle_bvh.cu +++ b/src/triangle_bvh.cu @@ -428,7 +428,7 @@ public: Vector3f d = fibonacci_dir<N_STAB_RAYS>(i, offset); // If any of the stab rays goes outside the mesh, the SDF is positive. - if (ray_intersect(point, -d, bvhnodes, triangles).first < 0 || ray_intersect(point, d, bvhnodes, triangles).first < 0) { + if (ray_intersect(point, d, bvhnodes, triangles).first < 0) { return distance; } }