Salome HOME
PAL11497. Netgen doesn't need a 3D hypothesis anymore T2_2_9pre
authoreap <eap@opencascade.com>
Wed, 15 Feb 2006 11:01:29 +0000 (11:01 +0000)
committereap <eap@opencascade.com>
Wed, 15 Feb 2006 11:01:29 +0000 (11:01 +0000)
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx

index 3e25994608756a11cbb4ba4dd642c1a8153c68a8..f1e415de665e18447ca3d307ecce9f2c4adfc140 100644 (file)
@@ -83,6 +83,7 @@ bool NETGENPlugin_NETGEN_3D::CheckHypothesis
   MESSAGE("NETGENPlugin_NETGEN_3D::CheckHypothesis");
 
   _hypMaxElementVolume = NULL;
+  _maxElementVolume = DBL_MAX;
 
   list<const SMESHDS_Hypothesis*>::const_iterator itl;
   const SMESHDS_Hypothesis* theHyp;
@@ -91,8 +92,9 @@ bool NETGENPlugin_NETGEN_3D::CheckHypothesis
   int nbHyp = hyps.size();
   if (!nbHyp)
   {
-    aStatus = SMESH_Hypothesis::HYP_MISSING;
-    return false;  // can't work with no hypothesis
+    aStatus = SMESH_Hypothesis::HYP_OK;
+    //aStatus = SMESH_Hypothesis::HYP_MISSING;
+    return true;  // can work with no hypothesis
   }
 
   itl = hyps.begin();