From 4db9697b8eb5bf224822556ee782577b2472e406 Mon Sep 17 00:00:00 2001 From: satabol Date: Mon, 14 Nov 2022 23:53:06 +0300 Subject: [PATCH 1/3] fix #4723 --- utils/modules/polygon_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/modules/polygon_utils.py b/utils/modules/polygon_utils.py index 7f0218c166..70dfa024b1 100644 --- a/utils/modules/polygon_utils.py +++ b/utils/modules/polygon_utils.py @@ -410,7 +410,7 @@ def pols_is_boundary(vertices, faces): bm = bmesh_from_pydata(vertices, [], faces, normal_update=True) interior, boundary, mask = Faces.process(bm, [], []) bm.free() - return mask, interior, boundary + return mask, boundary, interior def pols_edges(faces): From 218d74ae75d994ee5c4cfe0a1a286d00d489cd48 Mon Sep 17 00:00:00 2001 From: satabol Date: Thu, 17 Nov 2022 01:07:44 +0300 Subject: [PATCH 2/3] sockets order changed --- utils/modules/polygon_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/modules/polygon_utils.py b/utils/modules/polygon_utils.py index 70dfa024b1..b903efafac 100644 --- a/utils/modules/polygon_utils.py +++ b/utils/modules/polygon_utils.py @@ -410,7 +410,7 @@ def pols_is_boundary(vertices, faces): bm = bmesh_from_pydata(vertices, [], faces, normal_update=True) interior, boundary, mask = Faces.process(bm, [], []) bm.free() - return mask, boundary, interior + return mask, interior, boundary def pols_edges(faces): @@ -485,5 +485,5 @@ def pols_matrix(vertices, faces, origin, direc): 'Neighbor Faces': (63, 'vp', '', 'u', pols_neighbor, 's', 'Faces', 'Faces that share a vertex with face'), 'Adjacent Faces Idx': (64, 'p', '', 'u', pols_adjacent_idx, 's', 'Faces Idx', 'Index of faces that share a edge with face'), 'Neighbor Faces Idx': (65, 'vp', '', 'u', pols_neighbor_idx, 's', 'Faces Idx', 'Index of faces that share a vertex with face'), - 'Is Boundary': (70, 'vp', '', '', pols_is_boundary, 'sss', 'Mask, Boundary, Interior', 'Is the face boundary'), + 'Is Boundary': (70, 'vp', '', '', pols_is_boundary, 'sss', 'Mask, Interior, Boundary', 'Is the face boundary'), } From f84e33b0c735cd90560894c0310e27a62f2d4ea5 Mon Sep 17 00:00:00 2001 From: satabol Date: Thu, 17 Nov 2022 01:11:46 +0300 Subject: [PATCH 3/3] revert to first commit --- utils/modules/polygon_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/modules/polygon_utils.py b/utils/modules/polygon_utils.py index b903efafac..70dfa024b1 100644 --- a/utils/modules/polygon_utils.py +++ b/utils/modules/polygon_utils.py @@ -410,7 +410,7 @@ def pols_is_boundary(vertices, faces): bm = bmesh_from_pydata(vertices, [], faces, normal_update=True) interior, boundary, mask = Faces.process(bm, [], []) bm.free() - return mask, interior, boundary + return mask, boundary, interior def pols_edges(faces): @@ -485,5 +485,5 @@ def pols_matrix(vertices, faces, origin, direc): 'Neighbor Faces': (63, 'vp', '', 'u', pols_neighbor, 's', 'Faces', 'Faces that share a vertex with face'), 'Adjacent Faces Idx': (64, 'p', '', 'u', pols_adjacent_idx, 's', 'Faces Idx', 'Index of faces that share a edge with face'), 'Neighbor Faces Idx': (65, 'vp', '', 'u', pols_neighbor_idx, 's', 'Faces Idx', 'Index of faces that share a vertex with face'), - 'Is Boundary': (70, 'vp', '', '', pols_is_boundary, 'sss', 'Mask, Interior, Boundary', 'Is the face boundary'), + 'Is Boundary': (70, 'vp', '', '', pols_is_boundary, 'sss', 'Mask, Boundary, Interior', 'Is the face boundary'), }