Skip to content

Commit

Permalink
topology.py -> revert a few uses of optimal=False
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Oct 10, 2024
1 parent 351e0f3 commit dacb347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/build123d/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ def __max_fillet(window_min: float, window_max: float, current_iteration: int):
else:
fillet_exception = StdFail_NotDone

max_radius = __max_fillet(0.0, 2 * self.bounding_box(optimal=False).diagonal, 0)
max_radius = __max_fillet(0.0, 2 * self.bounding_box().diagonal, 0)

return max_radius

Expand Down Expand Up @@ -6364,7 +6364,7 @@ def project_to_shape(
Returns:
ShapeList[Face]: Face(s) projected on target object ordered by distance
"""
max_dimension = Compound([self, target_object]).bounding_box(optimal=False).diagonal
max_dimension = Compound([self, target_object]).bounding_box().diagonal
if taper == 0:
face_extruded = Solid.extrude(self, Vector(direction) * max_dimension)
else:
Expand Down Expand Up @@ -7325,7 +7325,7 @@ def extrude_until(
direction *= -1
until = Until.NEXT if until == Until.PREVIOUS else Until.LAST

max_dimension = Compound([section, target_object]).bounding_box(optimal=False).diagonal
max_dimension = Compound([section, target_object]).bounding_box().diagonal
clipping_direction = (
direction * max_dimension
if until == Until.NEXT
Expand Down

0 comments on commit dacb347

Please sign in to comment.