Skip to content

Commit

Permalink
operations_part.py -> bounding_box(optimal=False).diagonal
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Oct 10, 2024
1 parent bb810ea commit 929dd95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build123d/operations_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ def section(
validate_inputs(context, "section", None)

if context is not None and obj is None:
max_size = context.part.bounding_box().diagonal
max_size = context.part.bounding_box(optimal=False).diagonal
else:
max_size = obj.bounding_box().diagonal
max_size = obj.bounding_box(optimal=False).diagonal

if section_by is not None:
section_planes = (
Expand Down

0 comments on commit 929dd95

Please sign in to comment.