try registration
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user