summaryrefslogtreecommitdiff
path: root/src/mesh.h
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-09-06 23:55:53 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-09-06 23:55:53 -0400
commit10de6b1fbba5cf906cafda1c4c704e6ade163956 (patch)
tree90ae6058b89f0dec7327227e660b997d0fdf5cff /src/mesh.h
parent22c80599399aad63c9a678a01c01c390ad4f71d0 (diff)
downloadchroma-10de6b1fbba5cf906cafda1c4c704e6ade163956.tar.gz
chroma-10de6b1fbba5cf906cafda1c4c704e6ade163956.tar.bz2
chroma-10de6b1fbba5cf906cafda1c4c704e6ade163956.zip
make min_distance argument to intersect_node() optional.
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];