]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
21676: EDF 2283 NETGENPLUGIN: Improve Netgen 1D-2D-3D to generate pyramids in case...
authoreap <eap@opencascade.com>
Fri, 6 Dec 2013 09:46:35 +0000 (09:46 +0000)
committereap <eap@opencascade.com>
Fri, 6 Dec 2013 09:46:35 +0000 (09:46 +0000)
Allow qudrangles in 3D mesh

src/GUI/NETGENPluginGUI_HypothesisCreator.cxx

index 7a0a094b27613b61f9ddeb9daae83b0b03e2d6c5..abb45c4d95c3a20da8283c1782cbbbd594c96ecf 100644 (file)
@@ -443,13 +443,14 @@ bool NETGENPluginGUI_HypothesisCreator::storeParamsToHypo( const NetgenHypothesi
     h->SetVarParameter( h_data.myMinSizeVar.toLatin1().constData(), "SetMinSize");
     h->SetMinSize( h_data.myMinSize );
     
-    if ( myIs2D )
+    //if ( myIs2D )
       {
-        NETGENPlugin::NETGENPlugin_Hypothesis_2D_var h_2d =
-          NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( h );
+        // NETGENPlugin::NETGENPlugin_Hypothesis_2D_var h_2d =
+        //   NETGENPlugin::NETGENPlugin_Hypothesis_2D::_narrow( h );
         
-        if ( !h_2d->_is_nil() )
-          h_2d->SetQuadAllowed( h_data.myAllowQuadrangles );
+        // if ( !h_2d->_is_nil() )
+        //   h_2d->SetQuadAllowed( h_data.myAllowQuadrangles );
+        h->SetQuadAllowed( h_data.myAllowQuadrangles );
       }
 
     QMapIterator<QString,QString> i(myLocalSizeMap);