try registration

This commit is contained in:
2023-06-09 10:51:20 +02:00
parent b103b09414
commit 9147d6daa9
3 changed files with 173 additions and 0 deletions
+11
View File
@@ -369,6 +369,17 @@ def plot_3d(mesh, faces):
return fig
def quads2tris(F):
out = []
for f in F:
if len(f) == 3: out += [f]
elif len(f) == 4: out += [[f[0],f[1],f[2]],
[f[0],f[2],f[3]]]
else: print("This should not happen...")
return np.array(out, np.int32)
if __name__ == '__main__':
from custom_utils.custom_utils import _maskFaces