Elffuss BraidHub

kikocis/SpatialLM public

Merge pull request #133 from ghanning/main

Fix distance check bug in `are_planes_parallel_and_close()`
Changeset42df5ba7b90296e7fad79d65903ac594feca9034aae4543cbfb0fea9c0f7d77d
AuthorYongsen Mao <36813656+SamMaoYS@users.noreply.github.com> · 2026-06-27 02:14 +08:00
CommitterGitHub <noreply@github.com> · 2026-06-27 02:14 +08:00
Parents5be0d257508d, c7063826168a

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