From 38bf199fb602fed22430611c634b1b7599bf4e29 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Tue, 3 Sep 2024 13:47:38 -0500 Subject: [PATCH] topology.py -> add optimal keyword to Shape.bounding_box --- src/build123d/topology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build123d/topology.py b/src/build123d/topology.py index 5ae9cc2b..d2ce2acf 100644 --- a/src/build123d/topology.py +++ b/src/build123d/topology.py @@ -1988,7 +1988,7 @@ def is_valid(self) -> bool: chk.SetParallel(True) return chk.IsValid() - def bounding_box(self, tolerance: float = None) -> BoundBox: + def bounding_box(self, tolerance: float = None, optimal: bool = True) -> BoundBox: """Create a bounding box for this Shape. Args: @@ -1997,7 +1997,7 @@ def bounding_box(self, tolerance: float = None) -> BoundBox: Returns: BoundBox: A box sized to contain this Shape """ - return BoundBox._from_topo_ds(self.wrapped, tolerance=tolerance) + return BoundBox._from_topo_ds(self.wrapped, tolerance=tolerance, optimal=optimal) def mirror(self, mirror_plane: Plane = None) -> Self: """