From: eap Date: Fri, 8 Jul 2011 11:42:47 +0000 (+0000) Subject: restore "QuadranglePreference" hyp as it can be used by NETGEN 2D X-Git-Tag: V6_4_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51cc06831d96d31e31df801e39c0fdc48ad40536;p=plugins%2Fnetgenplugin.git restore "QuadranglePreference" hyp as it can be used by NETGEN 2D together with "Max. Elemet Area" for example --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index c35e86a..31b8dce 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -36,6 +36,7 @@ #include "StdMeshers_FaceSide.hxx" #include "StdMeshers_MaxElementArea.hxx" #include "StdMeshers_LengthFromEdges.hxx" +#include "StdMeshers_QuadranglePreference.hxx" #include #include @@ -87,14 +88,7 @@ NETGENPlugin_NETGEN_2D_ONLY::NETGENPlugin_NETGEN_2D_ONLY(int hypId, int studyId, _compatibleHypothesis.push_back("MaxElementArea"); _compatibleHypothesis.push_back("LengthFromEdges"); - //_compatibleHypothesis.push_back("QuadranglePreference"); - _compatibleHypothesis.push_back("QuadrangleParams"); /* QuadranglePreference was removed and - it is converted into QuadrangleParams - at reading an old study; so we use - QuadrangleParams insead of - QuadranglePreference for backward - compatibility - */ + _compatibleHypothesis.push_back("QuadranglePreference"); _compatibleHypothesis.push_back("NETGEN_Parameters_2D"); _hypMaxElementArea = 0; @@ -149,10 +143,10 @@ bool NETGENPlugin_NETGEN_2D_ONLY::CheckHypothesis (SMESH_Mesh& aMesh, _hypMaxElementArea = static_cast (hyp); else if ( hypName == "LengthFromEdges" ) _hypLengthFromEdges = static_cast (hyp); + else if ( hypName == "QuadranglePreference" ) + _hypQuadranglePreference = static_cast(hyp); else if ( hypName == "NETGEN_Parameters_2D" ) _hypParameters = static_cast(hyp); - else if ( hypName == "QuadrangleParams" ) - _hypQuadranglePreference = hyp; else { aStatus = HYP_INCOMPATIBLE; return false;