]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Debug
authorgdd <gdd>
Thu, 26 Apr 2012 13:10:16 +0000 (13:10 +0000)
committergdd <gdd>
Thu, 26 Apr 2012 13:10:16 +0000 (13:10 +0000)
src/GEOMImpl/GEOMImpl_IAdvancedOperations.cxx

index cf7d7af71d6988de3e864f4b45c27957dfe4e72f..15156df455cb009f9ba9de93c17dffb070e2aa2d 100644 (file)
@@ -1038,9 +1038,6 @@ bool GEOMImpl_IAdvancedOperations::MakePipeTShapePartition(Handle(GEOM_Object) t
               TopAbs_SOLID, false, theMaterials, 0, false);
     if (Te3.IsNull()) {
       SetErrorCode("Impossible to build partition of TShape");
-//       Handle(GEOM_Object) aCompound = myShapesOperations->MakeCompound(theShapes);
-//       TopoDS_Shape aCompoundShape = aCompound->GetValue();
-//       theShape->GetLastFunction()->SetValue(aCompoundShape);
       return false;
     }
     Te3->GetLastFunction()->SetDescription("");
@@ -1048,9 +1045,25 @@ bool GEOMImpl_IAdvancedOperations::MakePipeTShapePartition(Handle(GEOM_Object) t
     // Last verification: result should be a block
     std::list<GEOMImpl_IBlocksOperations::BCError> errList;
     if (!myBlocksOperations->CheckCompoundOfBlocks(Te3,errList)) {
-      SetErrorCode("TShape is not a block");
+      SetErrorCode("TShape is not a compound of block");
       return false;
     }
+    
+//     // BEGIN Compound of created shapes - Only for debug purpose
+//     theShapes.clear();
+//     theShapes.push_back(theShape);
+//     theShapes.push_back(aPlnOZ);
+//     if (Abs(aR1Ext - aR2Ext) > Precision::Confusion() )
+//       theShapes.push_back(aPlnOXZ);
+//     theShapes.push_back(face_t);
+//     if (!isNormal)
+//       theShapes.push_back(face_t2);
+// 
+//     Handle(GEOM_Object) aCompound = myShapesOperations->MakeCompound(theShapes);
+//     TopoDS_Shape aCompoundShape = aCompound->GetValue();
+//     theShape->GetLastFunction()->SetValue(aCompoundShape);
+//     // END Compound of created shapes - Only for debug purpose
+    
     TopoDS_Shape aShape = Te3->GetValue();
     theShape->GetLastFunction()->SetValue(aShape);
   } catch (Standard_Failure) {