Fixing case of point vs. edge in projecting mode

This commit is contained in:
Matthias Koefferlein 2025-09-05 08:05:27 +02:00
parent aed28098f2
commit a9d52b7a70
3 changed files with 2 additions and 1 deletions

View File

@ -330,6 +330,7 @@ static bool var_near_part_of_edge (zero_distance_mode zd_mode, db::coord_traits<
}
// handle the parallel case
// NOTE: a point is "parallel" to an edge
if (e.parallel (g)) {
if (std::abs (double (e.distance (g.p1 ()))) >= double (d)) {
@ -387,7 +388,7 @@ static bool var_near_part_of_edge (zero_distance_mode zd_mode, db::coord_traits<
l1 = std::max (0.0, l1);
l2 = std::min (1.0, l2);
if (l1 >= l2) {
if (l1 > l2 + db::epsilon) {
return false;
} else {
if (output) {

Binary file not shown.

Binary file not shown.