From af51a18716c84f3221875754fe4c41c49e6d4ac7 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 6 Sep 2016 17:08:29 +0300 Subject: [PATCH] Debug for deflection dump --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.2