]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
PAL9513. Make peresence of "Max Element Volume" hypothesis optional
authoreap <eap@opencascade.com>
Tue, 11 Oct 2005 09:14:49 +0000 (09:14 +0000)
committereap <eap@opencascade.com>
Tue, 11 Oct 2005 09:14:49 +0000 (09:14 +0000)
src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx

index 281e08ee530d762aedaf40059803cc10f018db49..3cf6a8dd6393dc7234ac3e04741a79b329e2bfec 100644 (file)
@@ -79,6 +79,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;
@@ -87,8 +88,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();