]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debug for deflection dump
authordbv <dbv@opencascade.com>
Tue, 6 Sep 2016 14:08:29 +0000 (17:08 +0300)
committerdbv <dbv@opencascade.com>
Tue, 6 Sep 2016 14:08:29 +0000 (17:08 +0300)
src/ModelHighAPI/ModelHighAPI_Dumper.cpp

index 855f98b5f2e19955106f3649cbdd33ab2b5e1606..840374b185953267412eca79e98fd672e8f56e06 100644 (file)
@@ -43,6 +43,8 @@
 
 #include <fstream>
 
+#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;
 }