From fe4bd6201c0d9c35c88502bfa17d705fad96d1e0 Mon Sep 17 00:00:00 2001 From: Craig Brinck Date: Mon, 24 Apr 2023 12:30:40 -0400 Subject: [PATCH] Fix for control point near duplicates --- PyNite/Mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PyNite/Mesh.py b/PyNite/Mesh.py index e564215a..16892358 100644 --- a/PyNite/Mesh.py +++ b/PyNite/Mesh.py @@ -458,6 +458,7 @@ def generate(self): # Only keep the value at `i` if it's not a duplicate or near duplicate if not isclose(x_control[i], x_control[i+1]): unique_list.append(x_control[i]) + unique_list.append(x_control[-1]) x_control = unique_list # Remove any values that are duplicates or near duplicates from `y_control` @@ -466,6 +467,7 @@ def generate(self): # Only keep the value at `i` if it's not a duplicate or near duplicate if not isclose(y_control[i], y_control[i+1]): unique_list.append(y_control[i]) + unique_list.append(y_control[-1]) y_control = unique_list # Each node number will be increased by the offset calculated below