From: dbv Date: Tue, 6 Sep 2016 15:30:58 +0000 (+0300) Subject: Removed Debug for deflection dump X-Git-Tag: V_2.5.0~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a24b0758dc7d946175bb11f8a96b534c8b146da;p=modules%2Fshaper.git Removed Debug for deflection dump --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index c49b84114..442e0383a 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -43,8 +43,6 @@ #include -#define DEBUG_DEFLECTION - static int gCompositeStackDepth = 0; ModelHighAPI_Dumper* ModelHighAPI_Dumper::mySelf = 0; @@ -411,15 +409,8 @@ void ModelHighAPI_Dumper::dumpEntitySetName() // set result deflection if (!isDefaultDeflection(*aResIt)) { AttributeDoublePtr aDeflectionAttr = (*aResIt)->data()->real(ModelAPI_Result::DEFLECTION_ID()); - #ifdef DEBUG_DEFLECTION - std::cout << "aDeflectionAttr.get(): " << (aDeflectionAttr.get() == NULL ? "Empty" : "Not empty") << std::endl; - std::cout << "aDeflectionAttr->isInitialized(): " << aDeflectionAttr->isInitialized() << std::endl; - #endif if(aDeflectionAttr.get() && aDeflectionAttr->isInitialized()) { *this << *aResIt; - #ifdef DEBUG_DEFLECTION - std::cout << "Dump deflection" << std::endl; - #endif myDumpBuffer << ".setDeflection(" << aDeflectionAttr->value() << ")" << std::endl; } } @@ -480,13 +471,6 @@ 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; - std::cout << "fabs(aCurrent - aDefault): " << fabs(aCurrent - aDefault) << std::endl; -#endif - - return fabs(aCurrent - aDefault) < 1.e-12; }