summaryrefslogtreecommitdiff
path: root/src/mesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh.h')
-rw-r--r--src/mesh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh.h b/src/mesh.h
index 0622144..0afe1c9 100644
--- a/src/mesh.h
+++ b/src/mesh.h
@@ -12,7 +12,7 @@
less than `min_distance`, return true, else return false. */
__device__ bool
intersect_node(const float3 &origin, const float3 &direction,
- Geometry *geometry, const int &i, const float &min_distance)
+ Geometry *geometry, const int &i, float min_distance=-1.0f)
{
/* assigning these to local variables is faster for some reason */
float3 lower_bound = geometry->lower_bounds[i];