Skip to content

Commit

Permalink
backup debug
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod committed Feb 3, 2025
1 parent 7c6bddc commit 69f7922
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sofa/framework/Geometry/src/sofa/geometry/Edge.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ struct Edge

const Node pX = pA + alpha * AB;
const Node pY = pC + beta * CD;
std::cout << "alpha: " << alpha << " beta: " << beta << std::endl;
std::cout << "pX: " << pX << " pY: " << pY << std::endl;

if (alpha < 0 || beta < 0 // if alpha or beta < 0 means on the exact same line but no overlap.
|| alpha > 1 || beta > 1 // if alpha > 1 means intersection but after outside from [AB]
Expand Down

0 comments on commit 69f7922

Please sign in to comment.