From: Christophe Bourcier Date: Wed, 29 Jan 2020 14:12:08 +0000 (+0100) Subject: Remove options no more in MeshGems 2.10 X-Git-Tag: V9_5_0a2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34c94f12de457dc28a3d13082932dc3848f9a95f;p=plugins%2Fblsurfplugin.git Remove options no more in MeshGems 2.10 Don't load these options from old hdf files otherwise they appear in the advanced panel --- 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();