]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Remove options no more in MeshGems 2.10
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 29 Jan 2020 14:12:08 +0000 (15:12 +0100)
committervsr <vsr@opencascade.com>
Tue, 10 Mar 2020 13:35:26 +0000 (16:35 +0300)
Don't load these options from old hdf files otherwise they appear in the advanced panel

src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx

index 0cb9ad9411eeef8d1ed8edb04044a0da1452f966..f6168558a394fb5ea5681adab0efcecb63627054 100644 (file)
@@ -112,7 +112,7 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis(int hypId, SMESH_Gen * gen, boo
 
   // Advanced options with their defaults according to MG User Manual
 
-  const char* boolOptionNames[] = { "enforce_cad_edge_sizes",                   // default = 0
+  const char* boolOptionNames[] = { //"enforce_cad_edge_sizes",                   // default = 0
                                     "jacobian_rectification_respect_geometry",  // default = 1
                                     "rectify_jacobian",                         // default = 1
                                     "respect_geometry",                         // default = 1
@@ -122,7 +122,7 @@ BLSURFPlugin_Hypothesis::BLSURFPlugin_Hypothesis(int hypId, SMESH_Gen * gen, boo
                                     "" // mark of end
   };
 
-  const char* intOptionNames[] = {          "max_number_of_points_per_patch",           // default = 100000
+  const char* intOptionNames[] = {          //"max_number_of_points_per_patch",           // default = 100000
                                             "max_number_of_threads",                    // default = 4
                                             "" // mark of end
   };
@@ -2649,7 +2649,9 @@ std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load)
         break;
       isOK = static_cast<bool>(load >> optValue);
     }
-    if (isOK) {
+    // read the value of the advanced option
+    // unless this option is no more used
+    if (isOK && optName != "enforce_cad_edge_sizes" && optName != "max_number_of_points_per_patch") {
       std::string & value = _option2value[optName];
       value = optValue;
       int len = value.size();