From 9d5979145a5c1194adb13a07bbbfb41b44be12c9 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Tue, 17 Sep 2024 09:57:18 -0500 Subject: [PATCH] joints.py -> use new optimal keyword for bounding_box with False --- src/build123d/joints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build123d/joints.py b/src/build123d/joints.py index bf2b8ca2..0c218429 100644 --- a/src/build123d/joints.py +++ b/src/build123d/joints.py @@ -69,7 +69,7 @@ def location(self) -> Location: @property def symbol(self) -> Compound: """A CAD symbol (XYZ indicator) as bound to part""" - size = self.parent.bounding_box().diagonal / 12 + size = self.parent.bounding_box(optimal=False).diagonal / 12 return Compound.make_triad(axes_scale=size).locate(self.location) def __init__( @@ -228,7 +228,7 @@ def location(self) -> Location: @property def symbol(self) -> Compound: """A CAD symbol representing the axis of rotation as bound to part""" - radius = self.parent.bounding_box().diagonal / 30 + radius = self.parent.bounding_box(optimal=False).diagonal / 30 return Compound( [ @@ -652,7 +652,7 @@ def location(self) -> Location: @property def symbol(self) -> Compound: """A CAD symbol representing joint as bound to part""" - radius = self.parent.bounding_box().diagonal / 30 + radius = self.parent.bounding_box(optimal=False).diagonal / 30 circle_x = Edge.make_circle(radius, self.angle_reference) circle_y = Edge.make_circle(radius, self.angle_reference.rotated((90, 0, 0))) circle_z = Edge.make_circle(radius, self.angle_reference.rotated((0, 90, 0)))