From c55767369af58822741af5116f0fe56da23f5881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 8 Nov 2018 10:37:33 +0100 Subject: [PATCH] local mesh-size also for 2D --- libsrc/geom2d/genmesh2d.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/geom2d/genmesh2d.cpp b/libsrc/geom2d/genmesh2d.cpp index 0ddfb8b4..208d0c2b 100644 --- a/libsrc/geom2d/genmesh2d.cpp +++ b/libsrc/geom2d/genmesh2d.cpp @@ -237,7 +237,10 @@ namespace netgen mesh2d.RestrictLocalH (Point<3> (x(0), x(1), 0), min2(hc, hcurve)); } } - + + for (auto mspnt : mp.meshsize_points) + mesh2d.RestrictLocalH (mspnt.pnt, mspnt.h); + // first add all vertices (for compatible orientation on periodic bnds) { double diam2 = Dist2(pmin, pmax);