Skip to content

Commit

Permalink
Refactoring (needs updated visionaray)
Browse files Browse the repository at this point in the history
  • Loading branch information
szellmann committed Nov 2, 2024
1 parent 8d3a968 commit cc9d678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DeviceCopyableObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -728,11 +728,12 @@ inline hit_record<Ray, primitive<unsigned>> intersect(
float v2 = 0.f;
bool sample2 = sampleField(sf,P2,v2);
if (sample1 && sample2) {
box1f ival(fminf(v1,v2), fmaxf(v1,v2));
unsigned numISOs = iso.numValues;
bool hit=false;
for (unsigned i=0;i<numISOs;i++) {
float isoValue = iso.values[i];
if ((v1 <= isoValue && v2 > isoValue) || (v2 <= isoValue && v1 > isoValue)) {
if (ival.contains(isoValue)) {
float tHit = t+dt/2.f;
if (tHit < result.t) {
result.hit = true;
Expand Down

0 comments on commit cc9d678

Please sign in to comment.