RepairTools
#
- class ansys.geometry.core.tools.repair_tools.RepairTools(grpc_client: ansys.geometry.core.connection.GrpcClient, modeler: ansys.geometry.core.modeler.Modeler)#
Repair tools for PyAnsys Geometry.
Overview#
Find split edges in the given list of bodies. |
|
Find the extra edges in the given list of bodies. |
|
Find inexact edges in the given list of bodies. |
|
Find the short edge problem areas. |
|
Find the duplicate face problem areas. |
|
Find the missing faces. |
|
Find the small face problem areas. |
|
Return the list of stitch face problem areas. |
|
Detect faces in a body that can be simplified. |
|
Find the interference problem areas. |
|
Find and fix the short edge problem areas. |
|
Find and fix the extra edge problem areas. |
|
Find and fix the split edge problem areas. |
|
Find and simplify the provided geometry. |
|
Return a list of geometry issues organized by body. |
|
Attempt to repair the geometry for the given bodies. |
Import detail#
from ansys.geometry.core.tools.repair_tools import RepairTools
Method detail#
- RepairTools.find_split_edges(bodies: list[ansys.geometry.core.designer.body.Body], angle: ansys.geometry.core.typing.Real = 0.0, length: ansys.geometry.core.typing.Real = 0.0) list[ansys.geometry.core.tools.problem_areas.SplitEdgeProblemAreas] #
Find split edges in the given list of bodies.
This method finds the split edge problem areas and returns a list of split edge problem areas objects.
- RepairTools.find_extra_edges(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.ExtraEdgeProblemAreas] #
Find the extra edges in the given list of bodies.
This method find the extra edge problem areas and returns a list of extra edge problem areas objects.
- RepairTools.find_inexact_edges(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.InexactEdgeProblemAreas] #
Find inexact edges in the given list of bodies.
This method find the inexact edge problem areas and returns a list of inexact edge problem areas objects.
- RepairTools.find_short_edges(bodies: list[ansys.geometry.core.designer.body.Body], length: ansys.geometry.core.typing.Real = 0.0) list[ansys.geometry.core.tools.problem_areas.ShortEdgeProblemAreas] #
Find the short edge problem areas.
This method finds the short edge problem areas and returns a list of these objects.
- RepairTools.find_duplicate_faces(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.DuplicateFaceProblemAreas] #
Find the duplicate face problem areas.
This method finds the duplicate face problem areas and returns a list of duplicate face problem areas objects.
- RepairTools.find_missing_faces(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.MissingFaceProblemAreas] #
Find the missing faces.
This method find the missing face problem areas and returns a list of missing face problem areas objects.
- RepairTools.find_small_faces(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.SmallFaceProblemAreas] #
Find the small face problem areas.
This method finds and returns a list of ids of small face problem areas objects.
- RepairTools.find_stitch_faces(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.StitchFaceProblemAreas] #
Return the list of stitch face problem areas.
This method find the stitch face problem areas and returns a list of ids of stitch face problem areas objects.
- RepairTools.find_simplify(bodies: list[ansys.geometry.core.designer.body.Body]) list[ansys.geometry.core.tools.problem_areas.UnsimplifiedFaceProblemAreas] #
Detect faces in a body that can be simplified.
- RepairTools.find_interferences(bodies: list[ansys.geometry.core.designer.body.Body], cut_smaller_body: bool = False) list[ansys.geometry.core.tools.problem_areas.InterferenceProblemAreas] #
Find the interference problem areas.
- Parameters:
- Returns:
list
[InterfenceProblemAreas
]List of objects representing interference problem areas.
Notes
This method finds and returns a list of ids of interference problem areas objects.
- RepairTools.find_and_fix_short_edges(bodies: list[ansys.geometry.core.designer.body.Body], length: ansys.geometry.core.typing.Real = 0.0, comprehensive_result: bool = False) ansys.geometry.core.tools.repair_tool_message.RepairToolMessage #
Find and fix the short edge problem areas.
- Parameters:
- Returns:
RepairToolMessage
Message containing number of problem areas found/fixed, created and/or modified bodies.
Notes
This method finds the short edges in the bodies and fixes them.
- RepairTools.find_and_fix_extra_edges(bodies: list[ansys.geometry.core.designer.body.Body], comprehensive_result: bool = False) ansys.geometry.core.tools.repair_tool_message.RepairToolMessage #
Find and fix the extra edge problem areas.
- Parameters:
- Returns:
RepairToolMessage
Message containing number of problem areas found/fixed, created and/or modified bodies.
Notes
This method finds the extra edges in the bodies and fixes them.
- RepairTools.find_and_fix_split_edges(bodies: list[ansys.geometry.core.designer.body.Body], angle: ansys.geometry.core.typing.Real = 0.0, length: ansys.geometry.core.typing.Real = 0.0, comprehensive_result: bool = False) ansys.geometry.core.tools.repair_tool_message.RepairToolMessage #
Find and fix the split edge problem areas.
- Parameters:
- bodies
list
[Body
] List of bodies that split edges are investigated on.
- angle
Real
,optional
The maximum angle between edges. By default, 0.0.
- length
Real
,optional
The maximum length of the edges. By default, 0.0.
- comprehensive_resultbool,
optional
Whether to fix all problem areas individually. By default, False.
- bodies
- Returns:
RepairToolMessage
Message containing number of problem areas found/fixed, created and/or modified bodies.
Notes
This method finds the extra edges in the bodies and fixes them.
- RepairTools.find_and_fix_simplify(bodies: list[ansys.geometry.core.designer.body.Body], comprehensive_result: bool = False) ansys.geometry.core.tools.repair_tool_message.RepairToolMessage #
Find and simplify the provided geometry.
- Parameters:
- Returns:
RepairToolMessage
Message containing number of problem areas found/fixed, created and/or modified bodies.
Notes
This method simplifies the provided geometry.
- RepairTools.inspect_geometry(bodies: list[ansys.geometry.core.designer.body.Body] = None) list[ansys.geometry.core.tools.check_geometry.InspectResult] #
Return a list of geometry issues organized by body.
This method inspects the geometry and returns a list of the issues grouped by the body where they are found.
- RepairTools.repair_geometry(bodies: list[ansys.geometry.core.designer.body.Body] = None) ansys.geometry.core.tools.repair_tool_message.RepairToolMessage #
Attempt to repair the geometry for the given bodies.
This method inspects the geometry for the given bodies and attempts to repair them.
- Parameters:
- bodies
list
[Body
] List of bodies where to attempt to repair the geometry. All bodies are repaired if the argument is not given.
- bodies
- Returns:
RepairToolMessage
Message containing success of the operation.