Skip to content

Commit 645c8a8

Browse files
committed
more cleanup
1 parent 282b43c commit 645c8a8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ def reset_tessellation_cache(func): # noqa: N805
12031203

12041204
@wraps(func)
12051205
def wrapper(self: "Body", *args, **kwargs):
1206-
self._template._tessellation = None
1206+
self._reset_tessellation_cache()
12071207
return func(self, *args, **kwargs)
12081208

12091209
return wrapper

src/ansys/geometry/core/tools/pull_tools.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, grpc_client: GrpcClient):
5252

5353
@protect_grpc
5454
@min_backend_version(25, 1, 0)
55-
def chamfer(self, edge_or_face: Union["Edge", "Face"], distance: Real):
55+
def chamfer(self, edge_or_face: Union["Edge", "Face"], distance: Real) -> bool:
5656
"""Create a chamfer on an edge, or adjust the chamfer of a face.
5757
5858
Parameters
@@ -61,8 +61,14 @@ def chamfer(self, edge_or_face: Union["Edge", "Face"], distance: Real):
6161
Edge or face to act on.
6262
distance : Real
6363
Chamfer distance.
64+
65+
Returns
66+
-------
67+
bool
68+
Success of chamfer command.
6469
"""
6570
edge_or_face.body._reset_tessellation_cache()
6671

67-
self._commands_stub.Chamfer(ChamferRequest(id=edge_or_face.id, distance=distance))
68-
# return all created stuff?
72+
result = self._commands_stub.Chamfer(ChamferRequest(id=edge_or_face.id, distance=distance))
73+
74+
return result.success

0 commit comments

Comments
 (0)