Salome HOME
"Use internal vertices of all faces" option is not correctly saved in the study.
authorgdd <gdd>
Mon, 27 Aug 2012 14:40:22 +0000 (14:40 +0000)
committergdd <gdd>
Mon, 27 Aug 2012 14:40:22 +0000 (14:40 +0000)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx

index 1856a70a94942991fd1c6b49d0a411bd2692a668..f934918b367fee0d8ba93f2eddc03262b88af3ca 100644 (file)
@@ -1134,6 +1134,7 @@ std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save) {
       << _angleMeshS << " " << _gradation << " " << (int) _quadAllowed << " " << (int) _decimesh;
   save << " " << _phyMin << " " << _phyMax << " " << _angleMeshC << " " << _hgeoMin << " " << _hgeoMax << " " << _verb;
   save << " " << (int) _preCADMergeEdges << " " << (int) _preCADRemoveNanoEdges << " " << (int) _preCADDiscardInput << " " << _preCADEpsNano ;
+  save << " " << (int) _enforcedInternalVerticesAllFaces;
 
   TOptionValues::iterator op_val = _option2value.begin();
   if (op_val != _option2value.end()) {
@@ -1355,6 +1356,12 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load) {
   else
     load.clear(std::ios::badbit | load.rdstate());
 
+  isOK = (load >> i);
+  if (isOK)
+    _enforcedInternalVerticesAllFaces = (bool) i;
+  else
+    load.clear(std::ios::badbit | load.rdstate());
+
   std::string option_or_sm;
   bool hasOptions = false;
   bool hasPreCADOptions = false;