From: eap Date: Mon, 19 Dec 2016 10:47:00 +0000 (+0300) Subject: 23369: [CEA 1513] compute a mesh using an already existing mesh with MG-CADSurf X-Git-Tag: SHAPER_2.7.0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc47658f788dec6f18a76b9ba61868ba0c5bcf5b;p=plugins%2Fhexoticplugin.git 23369: [CEA 1513] compute a mesh using an already existing mesh with MG-CADSurf --- diff --git a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx index 4150e40..67481af 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx @@ -143,7 +143,8 @@ bool HexoticPlugin_Hexotic::CheckBLSURFHypothesis( SMESH_Mesh& aMesh, // If a BLSURF hypothesis is applied, get it SMESH_HypoFilter blsurfFilter; - blsurfFilter.Init( blsurfFilter.HasName( BLSURFPlugin_Hypothesis::GetHypType() )); + blsurfFilter.Init( blsurfFilter.HasName( BLSURFPlugin_Hypothesis::GetHypType(true) )); + blsurfFilter.Or ( blsurfFilter.HasName( BLSURFPlugin_Hypothesis::GetHypType(false))); std::list appliedHyps; aMesh.GetHypotheses( aShape, blsurfFilter, appliedHyps, false ); @@ -151,7 +152,9 @@ bool HexoticPlugin_Hexotic::CheckBLSURFHypothesis( SMESH_Mesh& aMesh, itl = appliedHyps.begin(); theHyp = (*itl); // use only the first hypothesis std::string hypName = theHyp->GetName(); - if (hypName == BLSURFPlugin_Hypothesis::GetHypType()) { + if (hypName == BLSURFPlugin_Hypothesis::GetHypType(true) || + hypName == BLSURFPlugin_Hypothesis::GetHypType(false) ) + { _blsurfHypo = static_cast (theHyp); ASSERT(_blsurfHypo); return true;