Skip to content

Instantly share code, notes, and snippets.

@AxoyTO
Last active December 10, 2021 09:13
Show Gist options
  • Select an option

  • Save AxoyTO/d625f16c584d3c313d8981df51e1129a to your computer and use it in GitHub Desktop.

Select an option

Save AxoyTO/d625f16c584d3c313d8981df51e1129a to your computer and use it in GitHub Desktop.
from scipy.spatial.distance import directed_hausdorff
#Assume m1_v and m2_v are vertices of models
scipy_res = directed_hausdorff(m1_v, m2_v)
print(f"Scipy: {scipy_res[0]:.6f}\nIndexes: ({scipy_res[1]}, {scipy_res[2]})")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment