Changesets · Branches · Tags · Compare
| Changeset | c7063826168a44114e5234dbca47ffc5b79bfb3cb80509beec9bf213ffef825a |
|---|---|
| Author | Gustav Hanning <gustav.hanning@math.lth.se> · 2026-06-22 07:47 +02:00 |
| Committer | Gustav Hanning <gustav.hanning@math.lth.se> · 2026-06-22 07:47 +02:00 |
| Parents | 5be0d257508d |
1 file changed
modified eval.py +1 −1
| @@ -279,7 +279,7 @@ | ||
| 279 | 279 | |
| 280 | 280 | return ( |
| 281 | 281 | np.linalg.norm(np.cross(n1, n2)) / (n1_length * n2_length) < parallel_tolerance |
| 282 | - and np.dot(np.subtract(q1, p1), n1) / n1_length < dist_tolerance | |
| 282 | + and np.abs(np.dot(np.subtract(q1, p1), n1)) / n1_length < dist_tolerance | |
| 283 | 283 | ) |
| 284 | 284 | |
| 285 | 285 |