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++) {