From ebdce1c3f59b2bd2ea5d2c25067cb8fe8b85641d Mon Sep 17 00:00:00 2001 From: asozinov Date: Fri, 28 Oct 2022 10:36:04 +0300 Subject: [PATCH] bos 32536: small fix for netgen 6.2.2204 --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 2 ++ src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 732a244..c689337 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -31,6 +31,7 @@ #include "NETGENPlugin_Hypothesis_2D.hxx" #include "NETGENPlugin_SimpleHypothesis_3D.hxx" +#include #include #include #include @@ -4511,6 +4512,7 @@ int NETGENPlugin_NetgenLibWrapper::GenerateMesh( netgen::OCCGeometry& occgeo, ngMesh->SetGeometry( shared_ptr( &occgeo, &NOOP_Deleter )); + occgeo.BuildFMap(); netgen::mparam.perfstepsstart = startWith; netgen::mparam.perfstepsend = endWith; std::shared_ptr meshPtr( ngMesh, &NOOP_Deleter ); diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index cd27c78..a45fcbf 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -26,6 +26,8 @@ #include "NETGENPlugin_Mesher.hxx" #include "NETGENPlugin_Hypothesis_2D.hxx" +#include +#include #include #include #include @@ -290,6 +292,8 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh, #endif occgeoComm.face_maxh = netgen::mparam.maxh; #ifdef NETGEN_V6 + occgeoComm.BuildFMap(); + netgen::OCCParameters occparam; netgen::OCCSetLocalMeshSize( occgeoComm, *ngMeshes[0], netgen::mparam, occparam ); #else -- 2.39.2