How can I check if a point (x, y, z) lies inside an Ansys.ACT.Automation.Mechanical.Body object? The body can have an arbitrary shape, so using a bounding box is not sufficient.
Hi @AlexGh , if you need this on a CAD level, Discovery/Space Claim would likely have some APIs for this. If it is sufficient to do this on a mesh level (i.e., checking if the point is within the mesh of the body), you can leverage a feature of the mech_dpf "on_coordinates" operator: NOTE that I am attaching the pyDPF version of the operator doc, syntax is slightly different in mech_dpf but the idea still applies. on_coordinates will only return results for points inside the provided mesh, so this feature could be leveraged to test if the point is within the body (up to some tolerance).