invetigate registration errors

This commit is contained in:
2023-03-30 14:13:44 +00:00
parent 898ad43316
commit 5ff4716033
3 changed files with 91 additions and 9 deletions
+5 -2
View File
@@ -107,7 +107,7 @@ class UV2MeshLabel():
return self.uv_to_mesh(uv)
def _maskFaces(V, F, mask):
def _maskFaces(V, F, mask, return_unfixed=False):
V_mask = mask
F_mask = np.take(V_mask, F.reshape(-1), axis=0)
F_mask = F_mask.reshape((-1, 3)).sum(axis=1) == 3
@@ -117,7 +117,10 @@ def _maskFaces(V, F, mask):
F_new = np.take(V_ind, F[F_mask, :].reshape(-1), axis=0).reshape((-1, 3))
V_new = V[V_mask, :]
return V_new, F_new
if return_unfixed:
return V_new, F_new, F[F_mask, :]
else:
return V_new, F_new
# def _maskFaces_tf(V, F, mask):