From bc6209ad91dbb0c09d011f25b0ecb130629410fb Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Thu, 25 Dec 2025 21:18:22 -0600 Subject: [PATCH] Fix #7372: Increase almost_zero tolerance to handle matrix transformation precision Changed tolerance from 1e-5 to 1e-4 to account for floating-point errors introduced by matrix transformations. Fixes section annotations being incorrectly excluded from drawings when they should be visible. --- src/bonsai/bonsai/bim/module/drawing/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/helper.py b/src/bonsai/bonsai/bim/module/drawing/helper.py index 3943e8fd2f..01a78aad11 100644 --- a/src/bonsai/bonsai/bim/module/drawing/helper.py +++ b/src/bonsai/bonsai/bim/module/drawing/helper.py @@ -507,7 +507,7 @@ def ortho_view_frame( def almost_zero(v): - return abs(v) < 1e-5 + return abs(v) < 1e-4 def clip_segment(bounds, segm):