From c7d389e0ca55318d2505ebcc0ded3fb4b01dcb9e Mon Sep 17 00:00:00 2001 From: Eric Price Date: Tue, 19 Nov 2024 18:32:52 +0100 Subject: [PATCH] fix #34 again --- CurvedShapes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CurvedShapes.py b/CurvedShapes.py index 397922a..5fac0c9 100644 --- a/CurvedShapes.py +++ b/CurvedShapes.py @@ -140,7 +140,7 @@ def boundbox_from_intersect(curves, pos, normal, doScaleXYZ, nearestpoints=True) def scaleByBoundbox(shape, boundbox, doScaleXYZ, copy=True): - basebbox = shape.BoundBox + basebbox = shape.optimalBoundingBox(False,False) scalevec = Vector(1, 1, 1) if doScaleXYZ[0] and basebbox.XLength > epsilon: scalevec.x = boundbox.XLength / basebbox.XLength