I am using the vtkCollisionDetectionFilter to know if two meshes intersect or not. This works fine (GetNumberOfContacts).
In the case where they do not interesect, I would be interested in calculating the minimum distance between those meshes (closest approach). → A full C++ implementation of min distance between triangles is contained in the TriDist.cpp of the just mentioned link.
Is there an algorithm in VTK to obtain this taking into account not only the vertices of each triangle but also their surfaces? Or do you know any other Python package / script that works with two vtkPolyData and performs this calculation?
I found this post from 2013 mentioning the possibility of using pybullet, but not sure if things have changed in VTK since.
Thanks in advance!