Salome HOME
Gradation parameter is now allowed for Physical mesh.
[plugins/blsurfplugin.git] / src / BLSURFPlugin / BLSURFPlugin_Hypothesis.cxx
index ae1d60e33dd2732ffa13e8bb95b066207728afe6..92bb519a2d56bf4c1e1d73beda02197260387dcd 100644 (file)
@@ -51,7 +51,7 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis (int hypId, int studyId,
 
   // to desable writing boundaries
   //_phyMin = _phyMax = _hgeoMin = _hgeoMax = undefinedDouble();
-  
+
 
   const char* intOptionNames[] = {
     "addsurf_ivertex",
@@ -122,7 +122,7 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis (int hypId, int studyId,
     _charOptions.insert( charOptionNames[i] );
     _option2value[ charOptionNames[i++] ].clear();
   }
-  
+
   _sizeMap.clear();
 }
 
@@ -144,6 +144,7 @@ void BLSURFPlugin_Hypothesis::SetPhysicalMesh(PhysicalMesh thePhysicalMesh)
       case DefaultSize:
       default:
         _phySize = GetDefaultPhySize();
+        _gradation  = GetDefaultGradation();
         break;
       }
     NotifySubMeshesHypothesisModification();
@@ -407,9 +408,9 @@ std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save)
        << " " << (int)_physicalMesh
        << " " << (int)_geometricMesh
        << " " << _phySize
-       << " " << _angleMeshS   
-       << " " << _gradation     
-       << " " << (int)_quadAllowed 
+       << " " << _angleMeshS
+       << " " << _gradation
+       << " " << (int)_quadAllowed
        << " " << (int)_decimesh;
   save << " " << _phyMin
        << " " << _phyMax
@@ -448,8 +449,8 @@ std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save)
     }
     save << " " << "__ATTRACTORS_END__";
   }
-  
-  
+
+
   return save;
 }
 
@@ -513,31 +514,31 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load)
     _phyMin = val;
   else
     load.clear(std::ios::badbit | load.rdstate());
-  
+
   isOK = (load >> val);
   if (isOK)
     _phyMax = val;
   else
     load.clear(std::ios::badbit | load.rdstate());
-  
+
   isOK = (load >> val);
   if (isOK)
     _angleMeshC = val;
   else
     load.clear(std::ios::badbit | load.rdstate());
-  
+
   isOK = (load >> val);
   if (isOK)
     _hgeoMin = val;
   else
     load.clear(std::ios::badbit | load.rdstate());
-  
+
   isOK = (load >> val);
   if (isOK)
     _hgeoMax = val;
   else
     load.clear(std::ios::badbit | load.rdstate());
-  
+
   isOK = (load >> i);
   if (isOK)
     _verb = i;