From 7bb613ac7ded31a4f332ddbf03e11bc7501ed496 Mon Sep 17 00:00:00 2001 From: maximunnit <96635318+maximunnit@users.noreply.github.com> Date: Thu, 19 Sep 2024 18:53:45 -0400 Subject: [PATCH] Update refract.cpp --- src/refract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/refract.cpp b/src/refract.cpp index c3f8aca..2c94c95 100644 --- a/src/refract.cpp +++ b/src/refract.cpp @@ -62,7 +62,7 @@ void Refract(std::vector normals, std::vector* void CalculateIntersections(std::vector vertices, std::vector refracteds, std::vector* intersections, double receiver_plane) { //returns the points on the receiver plane where the light rays from each vertex intersect - intersections->clear(); //clear the + intersections->clear(); //clear the intersections every time we call the function int numPoints = int(vertices.size()); for (int i = 0; i < numPoints; i++) {