Salome HOME
export of 3D poly to SHP (lot 5)
[modules/hydro.git] / src / HYDROData / HYDROData_Transform.cxx
index 391482b5fc51a7fb6d7cd8eb8a93f83cd7b97126..5b01d0d4d154fbe743d001efff5b4603ada45893 100644 (file)
 
 #include <TopTools_ListIteratorOfListOfShape.hxx>
 
-#include <BOPCol_ListOfShape.hxx>
-#include <BOPCol_MapOfShape.hxx>
+#include <TopTools_ListOfShape.hxx>
+#include <TopTools_MapOfShape.hxx>
 
-#include <BOPCol_ListOfShape.hxx>
+#include <TopTools_ListOfShape.hxx>
 
 #include <BOPAlgo_BuilderShape.hxx>
 #include <BOPAlgo_PaveFiller.hxx>
@@ -64,6 +64,8 @@ HYDROData_Transform::HYDROData_Transform()
   myTransform1=NULL;
   myTransform2=NULL;
   myBuilder=NULL;
+  myErrorStatus=0;
+  myWarningStatus=0;
 }
 //=======================================================================
 //function : ~
@@ -279,7 +281,7 @@ void HYDROData_Transform::BuildFuse()
 {
   Standard_Integer iErr;
   TopoDS_Iterator aIt;
-  BOPCol_ListOfShape aLC;
+  TopTools_ListOfShape aLC;
   BOPAlgo_PaveFiller aPF;
   //
   myErrorStatus=0;
@@ -304,8 +306,8 @@ void HYDROData_Transform::BuildFuse()
   aPF.SetArguments(aLC);
   //
   aPF.Perform();
-  iErr=aPF.ErrorStatus();
-  if (iErr) {
+  if (aPF.HasErrors()) 
+  {
     myErrorStatus=20;
     return;
   }
@@ -319,8 +321,8 @@ void HYDROData_Transform::BuildFuse()
   }
   //
   myBuilder->PerformWithFiller(aPF);
-  iErr=myBuilder->ErrorStatus();
-  if (iErr) {
+  if (myBuilder->HasErrors())
+  {
     myErrorStatus=21;
     return;
   }