commit all

This commit is contained in:
2023-01-25 12:25:59 +00:00
parent 1bf224841f
commit 7470ca9fb6
139 changed files with 82069 additions and 811 deletions
+8
View File
@@ -0,0 +1,8 @@
import numpy as np
import pymesh
def surf2surf(V1, F1, V2, F2):
me1 = pymesh.form_mesh(V1, np.array(F1, np.int32))
me2 = pymesh.form_mesh(V2, np.array(F2, np.int32))
return pymesh.distance_to_mesh(me1, me2.vertices)[0].mean() + pymesh.distance_to_mesh(me2, me1.vertices)[0].mean()