From 54b36c6a4030c5adaa798d7ad7837b3c29866dc1 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 24 Oct 2019 17:34:53 +0200 Subject: [PATCH] add virtual method to restrict localh to geometry --- libsrc/meshing/basegeom.cpp | 4 +--- libsrc/meshing/basegeom.hpp | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 93a7c6ca..429a5d58 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -21,9 +21,7 @@ namespace netgen mparam.grading); if(mparam.uselocalh) - { - // TODO set local h - } + RestrictLocalMeshsize(mesh, mparam); mesh.LoadLocalMeshSize(mparam.meshsizefilename); } diff --git a/libsrc/meshing/basegeom.hpp b/libsrc/meshing/basegeom.hpp index a1c9ef28..86d19546 100644 --- a/libsrc/meshing/basegeom.hpp +++ b/libsrc/meshing/basegeom.hpp @@ -38,6 +38,8 @@ namespace netgen virtual Mesh::GEOM_TYPE GetGeomType() const { return Mesh::NO_GEOM; } virtual void Analyse(Mesh& mesh, const MeshingParameters& mparam); + virtual void RestrictLocalMeshsize(Mesh& mesh, + const MeshingParameters& mparam) const {} virtual void FindEdges(Mesh& mesh, const MeshingParameters& mparam) {} virtual void MeshSurface(Mesh& mesh, const MeshingParameters& mparam) {} virtual void OptimizeSurface(Mesh& mesh, const MeshingParameters& mparam);