From: gdd Date: Mon, 27 Aug 2012 14:40:22 +0000 (+0000) Subject: "Use internal vertices of all faces" option is not correctly saved in the study. X-Git-Tag: V6_6_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc1d9f69835d208a67315f601d14422703efd1de;p=plugins%2Fblsurfplugin.git "Use internal vertices of all faces" option is not correctly saved in the study. --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 1856a70..f934918 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -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;