From 047107e0c96d01cdb92c6d1ea37f6c130449cc68 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 17 Sep 2012 18:41:31 +0000 Subject: [PATCH] 2d mesh size control --- libsrc/geom2d/genmesh2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/geom2d/genmesh2d.cpp b/libsrc/geom2d/genmesh2d.cpp index ebeddc88..6045598a 100644 --- a/libsrc/geom2d/genmesh2d.cpp +++ b/libsrc/geom2d/genmesh2d.cpp @@ -234,7 +234,7 @@ namespace netgen { Point<2> x = spline.GetPoint(t); double hc = 1.0/mp.curvaturesafety / (1e-99+spline.CalcCurvature (t)); - mesh2d.RestrictLocalH (Point<3> (x(0), x(1), 0), min2(hc, spline.hmax)); + mesh2d.RestrictLocalH (Point<3> (x(0), x(1), 0), min2(hc, hcurve)); } }