Skip to content

Commit 086f6dd

Browse files
committed
Update body.py
fix use of version and mismatched arguments
1 parent ded21c9 commit 086f6dd

File tree

1 file changed

+6
-6
lines changed
  • src/ansys/geometry/core/designer

1 file changed

+6
-6
lines changed

src/ansys/geometry/core/designer/body.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,26 +1610,26 @@ def plot( # noqa: D102
16101610
pl.show(screenshot=screenshot, **plotting_options)
16111611

16121612
def intersect(self, other: Union["Body", Iterable["Body"]], keep_other: bool = False) -> None: # noqa: D102
1613-
if self._grpc_client.backend_version < (25, 2, 0):
1613+
if self._template._grpc_client.backend_version < (25, 2, 0):
16141614
self.__generic_boolean_op(other, keep_other, "intersect", "bodies do not intersect")
16151615
else:
16161616
self.__generic_boolean_command(
1617-
other, keep_other, False, "intersect", "bodies do not intersect"
1617+
other, keep_other, "intersect", "bodies do not intersect"
16181618
)
16191619

16201620
def subtract(self, other: Union["Body", Iterable["Body"]], keep_other: bool = False) -> None: # noqa: D102
1621-
if self._grpc_client.backend_version < (25, 2, 0):
1621+
if self._template._grpc_client.backend_version < (25, 2, 0):
16221622
self.__generic_boolean_op(other, keep_other, "subtract", "empty (complete) subtraction")
16231623
else:
16241624
self.__generic_boolean_command(
1625-
other, keep_other, True, "subtract", "empty (complete) subtraction"
1625+
other, keep_other, "subtract", "empty (complete) subtraction"
16261626
)
16271627

16281628
def unite(self, other: Union["Body", Iterable["Body"]], keep_other: bool = False) -> None: # noqa: D102
1629-
if self._grpc_client.backend_version < (25, 2, 0):
1629+
if self._template._grpc_client.backend_version < (25, 2, 0):
16301630
self.__generic_boolean_op(other, keep_other, "unite", "union operation failed")
16311631
else:
1632-
self.__generic_boolean_command(other, False, False, "unite", "union operation failed")
1632+
self.__generic_boolean_command(other, False, "unite", "union operation failed")
16331633

16341634
@protect_grpc
16351635
@check_input_types

0 commit comments

Comments
 (0)