Elffuss BraidHub

kikocis/SpatialLM public

Fix distance check bug in are_planes_parallel_and_close().
Changesetc7063826168a44114e5234dbca47ffc5b79bfb3cb80509beec9bf213ffef825a
AuthorGustav Hanning <gustav.hanning@math.lth.se> · 2026-06-22 07:47 +02:00
CommitterGustav Hanning <gustav.hanning@math.lth.se> · 2026-06-22 07:47 +02:00
Parents5be0d257508d

Browse the files at this changeset

1 file changed

modified eval.py +1 −1
@@ -279,7 +279,7 @@
279279
280280 return (
281281 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
283283 )
284284
285285