Repository navigation
Is there any method which can calculate the collision between two geometries and return the exact value of penetration #3235
Answered
by
Fedr
dhanraj-khatal
asked this question in
Q&A
|
i am looking for a process to return the collision value between two tooth geometries in python. |
Answered by
Fedr
Oct 7, 2026
Replies: 1 comment
|
Sorry for late response, we missed your question.
|
0 replies
Answer selected by
Fedr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for late response, we missed your question.
findSignedDistance( meshA, meshB )(in Python:mrmeshpy.findSignedDistance) computes the minimal distance between two meshes; when the meshes intersect, the returnedsignedDistis negative and its magnitude is the maximal penetration depth, with the two closest points inaandb. If you need the colliding triangles themselves,findCollidingTriangles( meshA, meshB )returns the pairs, andboolean( meshA, meshB, BooleanOperation.Intersection )gives the overlapping volume as a mesh.