From f6b0df4293a7a9770308ba061afca464361b698b Mon Sep 17 00:00:00 2001
From: Brandon Lai-Cheong <blaicheo@uwaterloo.ca>
Date: Mon, 2 Dec 2024 14:42:07 -0500
Subject: [PATCH] fixed intersections

---
 src/utilities/intersections.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/utilities/intersections.cpp b/src/utilities/intersections.cpp
index 660443f..f562734 100644
--- a/src/utilities/intersections.cpp
+++ b/src/utilities/intersections.cpp
@@ -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
+}
-- 
GitLab