diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-09-06 23:55:53 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-09-06 23:55:53 -0400 |
commit | 10de6b1fbba5cf906cafda1c4c704e6ade163956 (patch) | |
tree | 90ae6058b89f0dec7327227e660b997d0fdf5cff /src/mesh.h | |
parent | 22c80599399aad63c9a678a01c01c390ad4f71d0 (diff) | |
download | chroma-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |