Skip to content
Snippets Groups Projects
Commit f6b0df42 authored by Brandon Lai-Cheong's avatar Brandon Lai-Cheong
Browse files

fixed intersections

parent b496605a
No related branches found
No related tags found
No related merge requests found
......@@ -173,10 +173,10 @@ std::vector<Point> intersections(const std::vector<Point> &points, const Edge &l
if (cand.has_value())
{
// add depth information
float z = interpolateZ(points, cand.value());
float z = interpolateZ(es[i], cand.value());
cand.value().z = z;
result.push_back(cand.value());
}
}
return result;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment