From 13c17adf8765d3dc3c4f768f001776390b343fa8 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 28 Aug 2019 09:52:51 +0200 Subject: [PATCH] restricth for occ and stl geometries --- libsrc/occ/occgenmesh.cpp | 3 +++ libsrc/stlgeom/stlgeommesh.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index aa2c4b0d..cbe2aca3 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -1264,6 +1264,9 @@ namespace netgen } } + for (auto mspnt : mparam.meshsize_points) + mesh.RestrictLocalH(mspnt.pnt, mspnt.h); + multithread.task = savetask; } diff --git a/libsrc/stlgeom/stlgeommesh.cpp b/libsrc/stlgeom/stlgeommesh.cpp index a5fcc0c2..301799d8 100644 --- a/libsrc/stlgeom/stlgeommesh.cpp +++ b/libsrc/stlgeom/stlgeommesh.cpp @@ -1369,6 +1369,10 @@ int STLMeshingDummy (STLGeometry* stlgeometry, shared_ptr & mesh, const Me stlgeometry->GetBoundingBox().PMax() + Vec3d(10, 10, 10), mparam.grading); mesh -> LoadLocalMeshSize (mparam.meshsizefilename); + + if (mparam.uselocalh) + for (auto mspnt : mparam.meshsize_points) + mesh->RestrictLocalH(mspnt.pnt, mspnt.h); success = 0;