speed up internal meshing

This commit is contained in:
Theophile Terraz committed 2025-10-14 09:40:43 +02:00
1 parent 315b913fd0
commit fb09cf254e
2 files changed
+35 -12

No files matched your search

+15
View File
@@ -1132,3 +1132,18 @@ class ProfileXYZ(Profile, SQLSubModel):
align = True
self.delete_i([i])
break
def hard_purge_aligned_points(self):
align = True
points = self.points
while (align):
align = False
for i in range(1, len(points) - 1):
d = points[i].dist_from_seg(points[i-1],
points[i+1])
if d < 0.00001 and points[i].name == "":
align = True
points.pop(i)
break
self._points = points
self.modified()