From 19a547e21bbcce935ec5977a54b1ffe6839d1ba2 Mon Sep 17 00:00:00 2001 From: felicio93 Date: Fri, 28 Jun 2024 16:34:10 -0400 Subject: [PATCH] new quad function + tests_21 --- ocsmesh/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocsmesh/utils.py b/ocsmesh/utils.py index 830e326..db4250c 100644 --- a/ocsmesh/utils.py +++ b/ocsmesh/utils.py @@ -3184,11 +3184,11 @@ def quads_from_tri(msht) -> jigsaw_msh_t: result = {key: value for key, value in duplicates.items() if len(value) > 1} - # separte the triangles to then be merged back to the quads + # separate the triangles to then be merged back to the quads tris_drop=[] for idxs in result.values(): tris_drop.append(idxs) - tris_drop = np.array(tris_drop).ravel() + tris_drop = np.array(tris_drop, dtype="int").ravel() tris = np.delete(msht.tria3['index'], tris_drop,axis=0) # combines all triangles that share 2 non-right angle vertices