Skip to content

Commit 13c885f

Browse files
wip, changing signature
1 parent 93290e6 commit 13c885f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/ansys/geometry/core/_grpc/_services/v0/repair_tools.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,12 @@ def find_missing_faces(self, **kwargs) -> dict: # noqa: D102
189189
def find_small_faces(self, **kwargs) -> dict: # noqa: D102
190190
from ansys.api.geometry.v0.repairtools_pb2 import FindSmallFacesRequest
191191

192-
request = FindSmallFacesRequest(selection=kwargs["selection"])
192+
request = FindSmallFacesRequest(
193+
selection=kwargs["selection"],
194+
area=kwargs["area"],
195+
width=kwargs["width"],
196+
)
197+
193198
# Call the gRPC service
194199
response = self.stub.FindSmallFaces(request)
195200

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def find_missing_faces(self, bodies: list["Body"]) -> list[MissingFaceProblemAre
286286
]
287287

288288
@protect_grpc
289-
def find_small_faces(self, bodies: list["Body"]) -> list[SmallFaceProblemAreas]:
289+
def find_small_faces(
290290
self,
291291
bodies: list["Body"],
292292
area: Real = None,
@@ -312,7 +312,9 @@ def find_small_faces(self, bodies: list["Body"]) -> list[SmallFaceProblemAreas]:
312312

313313
body_ids = [body.id for body in bodies]
314314
problem_areas_response = self._grpc_client.services.repair_tools.find_small_faces(
315-
selection=body_ids
315+
selection=body_ids,
316+
area=area,
317+
width=width,
316318
)
317319
parent_design = get_design_from_body(bodies[0])
318320

0 commit comments

Comments
 (0)