]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
initialize myAllowQuadrangles for 3D hyp
authoreap <eap@opencascade.com>
Fri, 21 Sep 2012 14:36:34 +0000 (14:36 +0000)
committereap <eap@opencascade.com>
Fri, 21 Sep 2012 14:36:34 +0000 (14:36 +0000)
src/GUI/NETGENPluginGUI_HypothesisCreator.cxx

index 58f599f5a682b2acea1aa6f4fed9af3c8ec68950..31b3f7e0b4926d559a5b5eb2950239a29f8378b8 100644 (file)
@@ -389,13 +389,13 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromHypo( NetgenHypothesisData
   h_data.myMinSize = h->GetMinSize();
   h_data.myMinSizeVar = getVariableName("SetMinSize");
 
-  if ( myIs2D )
+  //if ( myIs2D )
     {
-      NETGENPlugin::NETGENPlugin_Hypothesis_2D_var h_2d =
-        NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( initParamsHypothesis() );
+      NETGENPlugin::NETGENPlugin_Hypothesis_var h =
+        NETGENPlugin::NETGENPlugin_Hypothesis::_narrow( initParamsHypothesis() );
 
-      if ( !h_2d->_is_nil() )
-        h_data.myAllowQuadrangles = h_2d->GetQuadAllowed();
+      if ( !h->_is_nil() )
+        h_data.myAllowQuadrangles = h->GetQuadAllowed();
     }
   
   NETGENPluginGUI_HypothesisCreator* that = (NETGENPluginGUI_HypothesisCreator*)this;