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: """