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

index 2cd7d223fb8fa0ee18a338aecc0b1c1bbe19e36f..f3247183a4f1fcf40e0c09f343438a5e8fda8867 100644 (file)
@@ -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;
       }
     }