From: dbv Date: Tue, 6 Sep 2016 14:08:29 +0000 (+0300) Subject: Debug for deflection dump X-Git-Tag: V_2.5.0~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af51a18716c84f3221875754fe4c41c49e6d4ac7;p=modules%2Fshaper.git Debug for deflection dump --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 855f98b5f..840374b18 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -43,6 +43,8 @@ #include +#define DEBUG_DEFLECTION + static int gCompositeStackDepth = 0; ModelHighAPI_Dumper* ModelHighAPI_Dumper::mySelf = 0; @@ -471,6 +473,11 @@ bool ModelHighAPI_Dumper::isDefaultDeflection(const ResultPtr& theResult) const aDefault = Config_PropManager::real("Visualization", "body_deflection", ModelAPI_ResultBody::DEFAULT_DEFLECTION()); +#ifdef DEBUG_DEFLECTION + std::cout << "Current deflection: " << aCurrent << std::endl; + std::cout << "Default deflection: " << aDefault << std::endl; +#endif + return abs(aCurrent - aDefault) < 1.e-12; }