From ae2dddcff7953172b48f40a21ecfc5830c177a4a Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 6 Sep 2022 15:14:50 +0200 Subject: [PATCH] fix delaunay2d --- libsrc/meshing/delaunay2d.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsrc/meshing/delaunay2d.cpp b/libsrc/meshing/delaunay2d.cpp index e88434bf..db6bcc71 100644 --- a/libsrc/meshing/delaunay2d.cpp +++ b/libsrc/meshing/delaunay2d.cpp @@ -668,6 +668,11 @@ namespace netgen for (auto pi : points_range) dmesh.AddPoint(pi); + auto first_new_point = points_range.Next(); + tempmesh.AddPoint(P3(temp_points[first_new_point])); + tempmesh.AddPoint(P3(temp_points[first_new_point+1])); + tempmesh.AddPoint(P3(temp_points[first_new_point+2])); + timer_addpoints.Stop(); static Timer taddseg("addseg");