mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix issue where long lines where not being detected by the snapping system.
This commit is contained in:
@@ -58,6 +58,8 @@ class Raycast(bonsai.core.tool.Raycast):
|
||||
for i, axis in enumerate(zip(*transposed_bbox)):
|
||||
min_point = min(axis)
|
||||
max_point = max(axis)
|
||||
if min_point == max_point:
|
||||
min_point = 0
|
||||
if min_point < borders[i] and max_point > 0:
|
||||
bbox_2d.extend([min_point, max_point])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user