From 6cdeaf2d40a36429bc43f94e2bf808e9691193f0 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 23 Mar 2021 17:52:00 +0100 Subject: [PATCH] Only add segment end points of 2d geometry to mesh as 0D-elements --- libsrc/geom2d/genmesh2d.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libsrc/geom2d/genmesh2d.cpp b/libsrc/geom2d/genmesh2d.cpp index 5cb9fa58..2ba08b9c 100644 --- a/libsrc/geom2d/genmesh2d.cpp +++ b/libsrc/geom2d/genmesh2d.cpp @@ -271,6 +271,7 @@ namespace netgen // add point elements for (auto & point : geompoints) + if (point.name.length()) { Point<3> newp(point(0), point(1), 0); PointIndex npi = mesh2d.AddPoint (newp, 1, FIXEDPOINT); @@ -301,6 +302,11 @@ namespace netgen { npi = mesh2d.AddPoint (newp, layer); searchtree.Insert (newp, npi); + mesh2d.AddLockedPoint(npi); + Element0d el(npi, npi); + el.name = ""; + mesh2d.SetCD2Name(npi, ""); + mesh2d.pointelements.Append (el); } } }