From: dbv Date: Tue, 6 Sep 2016 14:51:32 +0000 (+0300) Subject: Debug for deflection dump X-Git-Tag: V_2.5.0~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=725c8bf3b940ea72c69e243e327aae488662e05b;p=modules%2Fshaper.git Debug for deflection dump --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 2cd7d223f..f3247183a 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -411,8 +411,15 @@ void ModelHighAPI_Dumper::dumpEntitySetName() // set result deflection if (!isDefaultDeflection(*aResIt)) { AttributeDoublePtr aDeflectionAttr = (*aResIt)->data()->real(ModelAPI_Result::DEFLECTION_ID()); - if(aDeflectionAttr && aDeflectionAttr->isInitialized()) { + #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; } }