From 10de6b1fbba5cf906cafda1c4c704e6ade163956 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Tue, 6 Sep 2011 23:55:53 -0400 Subject: make min_distance argument to intersect_node() optional. --- src/mesh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesh.h') 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]; -- cgit