Dessia-tech / volmdlr

A python VOLume MoDeLeR computations-oriented with STEP support for import/export
GNU Lesser General Public License v2.1
26 stars 8 forks source link

Mesh3D minimum distance return points #1335

Open MackJoly opened 3 months ago

MackJoly commented 3 months ago

exemple: after min_distance:

id_min_self_to_other_distances = list(self_to_other_distances).index(self_to_other_distances.min())
id_min_other_to_self_distances = list(other_to_self_distances).index(other_to_self_distances.min())

and instead of closest_points_xxx

closest_points_self = volmdlr.Point3D(*self.vertices[id_min_self_to_other_distances])
closest_points_other = volmdlr.Point3D(*other_mesh.vertices[id_min_other_to_self_distances])

It is a proposal, perhaps you know something better or it doesn't fit with the method behavior