mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 22:10:00 +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)):
|
for i, axis in enumerate(zip(*transposed_bbox)):
|
||||||
min_point = min(axis)
|
min_point = min(axis)
|
||||||
max_point = max(axis)
|
max_point = max(axis)
|
||||||
|
if min_point == max_point:
|
||||||
|
min_point = 0
|
||||||
if min_point < borders[i] and max_point > 0:
|
if min_point < borders[i] and max_point > 0:
|
||||||
bbox_2d.extend([min_point, max_point])
|
bbox_2d.extend([min_point, max_point])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user