Skip to content

Commit

Permalink
Update refract.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maximunnit authored Sep 19, 2024
1 parent 7027160 commit 7bb613a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void Refract(std::vector<Eigen::Vector3d> normals, std::vector<Eigen::Vector3d>*

void CalculateIntersections(std::vector<Eigen::Vector3d> vertices, std::vector<Eigen::Vector3d> refracteds, std::vector<Eigen::Vector2d>* 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++) {
Expand Down

0 comments on commit 7bb613a

Please sign in to comment.