mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 15:20:37 -08:00
Merge pull request #684 from jdegenstein/BBox_optimal
topology.py -> add `optimal: bool = True` keyword to `Shape.bounding_box`
This commit is contained in:
commit
ba348d5d98
1 changed files with 2 additions and 2 deletions
|
|
@ -1988,7 +1988,7 @@ class Shape(NodeMixin):
|
|||
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 @@ class Shape(NodeMixin):
|
|||
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:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue