From b2e98cdbd9fa1da88eefb7f812c4cf7cc4e93d90 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Wed, 29 Jan 2020 15:12:08 +0100 Subject: [PATCH] Remove options no more in MeshGems 2.10 Don't load these options from old hdf files otherwise they appear in the advanced panel --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 0cb9ad9..f616855 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -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(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(); -- 2.39.2