From 64f826e87faf733a8f70eb71105e1850ef821787 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 25 Jul 2011 08:25:53 +0000 Subject: [PATCH] 0021334: [CEA] non regression test : meshing error Move resizing occgeo.face_maxh back to PrepareOCCgeometry() --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 8f486e3..a7a1cb7 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -522,6 +522,8 @@ void NETGENPlugin_Mesher::PrepareOCCgeometry(netgen::OCCGeometry& occgeo, #ifdef NETGEN_NEW occgeo.face_maxh_modified.SetSize(occgeo.fmap.Extent()); occgeo.face_maxh_modified = 0; + occgeo.face_maxh.SetSize(occgeo.fmap.Extent()); + occgeo.face_maxh = netgen::mparam.maxh; #endif } @@ -1809,7 +1811,6 @@ bool NETGENPlugin_Mesher::Compute() if ( _simpleHyp || mparams.minh == 0.0 ) mparams.minh = GetDefaultMinSize( _shape, mparams.maxh ); #ifdef NETGEN_NEW - occgeo.face_maxh.SetSize(occgeo.fmap.Extent()); occgeo.face_maxh = mparams.maxh; #endif -- 2.39.2