From 56d256523ae173b004ab05760f79d0ba45776954 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 16 Sep 2019 15:38:20 +0200 Subject: [PATCH] use relative mindist instead of absolute I think this shouldn't be a relative value here. --- libsrc/occ/occgenmesh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index cbe2aca3..414b52f6 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -1252,12 +1252,12 @@ namespace netgen mindist /= (occparam.resthcloseedgefac + VSMALL); - if (mindist < 1e-3) + if (mindist < 1e-3 * bb.Diam()) { (*testout) << "extremely small local h: " << mindist - << " --> setting to 1e-3" << endl; + << " --> setting to " << 1e-3 * bb.Diam() << endl; (*testout) << "somewhere near " << line.p0 << " - " << line.p1 << endl; - mindist = 1e-3; + mindist = 1e-3 * bb.Diam(); } mesh.RestrictLocalHLine(line.p0, line.p1, mindist);