@@ -465,6 +465,8 @@ def find_and_fix_short_edges(
465465 RepairToolMessage
466466 Message containing created and/or modified bodies.
467467 """
468+ from ansys .geometry .core .designer .body import Body
469+
468470 check_type_all_elements_in_iterable (bodies , Body )
469471 check_type (length , Real )
470472
@@ -481,17 +483,15 @@ def find_and_fix_short_edges(
481483 parent_design = get_design_from_body (bodies [0 ])
482484 parent_design ._update_design_inplace ()
483485 message = RepairToolMessage (
484- response .result . success ,
485- response .result . created_bodies_monikers ,
486- response .result . modified_bodies_monikers ,
486+ response .success ,
487+ response .created_bodies_monikers ,
488+ response .modified_bodies_monikers ,
487489 )
488490 return message
489491
490492 @protect_grpc
491493 @min_backend_version (25 , 2 , 0 )
492- def find_and_fix_extra_edges (
493- self , bodies : list ["Body" ], length : Real = 0.0
494- ) -> RepairToolMessage :
494+ def find_and_fix_extra_edges (self , bodies : list ["Body" ]) -> RepairToolMessage :
495495 """Find and fix the extra edge problem areas.
496496
497497 This method finds the extra edges in the bodies and fixes them.
@@ -508,25 +508,25 @@ def find_and_fix_extra_edges(
508508 RepairToolMessage
509509 Message containing created and/or modified bodies.
510510 """
511+ from ansys .geometry .core .designer .body import Body
512+
511513 check_type_all_elements_in_iterable (bodies , Body )
512- check_type (length , Real )
513514
514515 if not bodies :
515516 return RepairToolMessage (False , [], [])
516517
517518 response = self ._repair_stub .FindAndFixExtraEdges (
518519 FindExtraEdgesRequest (
519520 selection = [body .id for body in bodies ],
520- max_edge_length = DoubleValue (value = length ),
521521 )
522522 )
523523
524524 parent_design = get_design_from_body (bodies [0 ])
525525 parent_design ._update_design_inplace ()
526526 message = RepairToolMessage (
527- response .result . success ,
528- response .result . created_bodies_monikers ,
529- response .result . modified_bodies_monikers ,
527+ response .success ,
528+ response .created_bodies_monikers ,
529+ response .modified_bodies_monikers ,
530530 )
531531 return message
532532
@@ -553,6 +553,8 @@ def find_and_fix_split_edges(
553553 RepairToolMessage
554554 Message containing created and/or modified bodies.
555555 """
556+ from ansys .geometry .core .designer .body import Body
557+
556558 check_type_all_elements_in_iterable (bodies , Body )
557559 check_type (length , Real )
558560
@@ -572,8 +574,8 @@ def find_and_fix_split_edges(
572574 parent_design = get_design_from_body (bodies [0 ])
573575 parent_design ._update_design_inplace ()
574576 message = RepairToolMessage (
575- response .result . success ,
576- response .result . created_bodies_monikers ,
577- response .result . modified_bodies_monikers ,
577+ response .success ,
578+ response .created_bodies_monikers ,
579+ response .modified_bodies_monikers ,
578580 )
579581 return message
0 commit comments