0021334: [CEA] non regression test : meshing error

Move resizing occgeo.face_maxh back to PrepareOCCgeometry()
This commit is contained in:
eap 2011-07-25 08:25:53 +00:00
parent e4d12c0ea7
commit 64f826e87f

View File

@ -522,6 +522,8 @@ void NETGENPlugin_Mesher::PrepareOCCgeometry(netgen::OCCGeometry& occgeo,
#ifdef NETGEN_NEW #ifdef NETGEN_NEW
occgeo.face_maxh_modified.SetSize(occgeo.fmap.Extent()); occgeo.face_maxh_modified.SetSize(occgeo.fmap.Extent());
occgeo.face_maxh_modified = 0; occgeo.face_maxh_modified = 0;
occgeo.face_maxh.SetSize(occgeo.fmap.Extent());
occgeo.face_maxh = netgen::mparam.maxh;
#endif #endif
} }
@ -1809,7 +1811,6 @@ bool NETGENPlugin_Mesher::Compute()
if ( _simpleHyp || mparams.minh == 0.0 ) if ( _simpleHyp || mparams.minh == 0.0 )
mparams.minh = GetDefaultMinSize( _shape, mparams.maxh ); mparams.minh = GetDefaultMinSize( _shape, mparams.maxh );
#ifdef NETGEN_NEW #ifdef NETGEN_NEW
occgeo.face_maxh.SetSize(occgeo.fmap.Extent());
occgeo.face_maxh = mparams.maxh; occgeo.face_maxh = mparams.maxh;
#endif #endif