Salome HOME
Deal with 1D/0D pointlocator into Remapper
[tools/medcoupling.git] / src / INTERP_KERNEL / BoxSplittingOptions.cxx
index d932a482d1766559b98fbc8d1e7017c1069b9431..71f05e28370bc23afcb09e7c6571bdd4c76e1265 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 #include <sstream>
 
-const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFECIENCY=0.5;
+const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFICIENCY_GOAL=0.5;
 
-const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFECIENCY_SND=0.5;
+const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFICIENCY_THRESHOLD=0.7;
 
 void INTERP_KERNEL::BoxSplittingOptions::init()
 {
-  _effeciency=DFT_EFFECIENCY;
-  _effeciency_snd=DFT_EFFECIENCY_SND;
-  _min_cell_direction=DFT_MIN_CELL_DIRECTION;
-  _max_cells=DFT_MAX_CELLS;
+  _efficiency_goal=DFT_EFFICIENCY_GOAL;
+  _efficiency_threshold=DFT_EFFICIENCY_THRESHOLD;
+  _min_patch_length=DFT_MIN_PATCH_LENGTH;
+  _max_patch_length=DFT_MAX_PATCH_LENGTH;
+  _max_nb_cells_in_patch=DFT_MAX_PATCH_MEASURE;
 }
 
 std::string INTERP_KERNEL::BoxSplittingOptions::printOptions() const
 {
   std::ostringstream oss;
-  oss << "Efficiency threshold: " << 100*_effeciency << "%"<< std::endl;
-  oss << "Efficiency Snd threshold: " << 100*_effeciency_snd << "%"<< std::endl;
-  oss << "Min. box side length: " << _min_cell_direction << std::endl;
-  oss << "Max. box cells : " << _max_cells << std::endl;
+  oss << "Efficiency goal: " << 100*_efficiency_goal << "%" << std::endl;
+  oss << "Efficiency threshold: " << 100*_efficiency_threshold << "%" << std::endl;
+  oss << "Min. patch side length: " << _min_patch_length << std::endl;
+  oss << "Max. patch side length: " << _max_patch_length << std::endl;
+  oss << "Max. patch measure: " << _max_nb_cells_in_patch << std::endl;
   return oss.str();
 }