Salome HOME
Bug #490: batch mode error.
[modules/hydro.git] / src / HYDROData / HYDROData_Pipes.h
index 4d681beeb212e8182bd0546782c67d539a9cfe79..15e1da9a8e99aa7b87189e84f02dbe73d2480674 100644 (file)
@@ -6,8 +6,10 @@
 #include <TopoDS_Wire.hxx>
 #include <gp_Pnt.hxx>
 #include <TopTools_ListOfShape.hxx>
+#include <ShapeUpgrade_UnifySameDomain.hxx>
 
 class BRepOffsetAPI_MakePipeShell;
+class TopoDS_Face;
 
 class HYDROData_Canal3dAnd2d
 {
@@ -34,15 +36,18 @@ public:
                                     const TopoDS_Wire& aGuideline,
                                     const gp_Pnt& aMiddlePoint);
 
+  TopoDS_Wire CreateWireOnUnifiedPipe2d(const TopoDS_Wire& aWireOnPipe2d);
+
   TopoDS_Wire GetBank(const TopoDS_Vertex& aFreeVertex);
 
   //Queries
   TopoDS_Shape Get3dPresentation();
-  TopoDS_Shape Get2dPresentation();
+  TopoDS_Face  Get2dPresentation();
   TopoDS_Wire GetLeftBank();
   TopoDS_Wire GetRightBank();
   TopoDS_Wire GetInlet();
   TopoDS_Wire GetOutlet();
+  Standard_Integer GetStatus();
 
   void MakeSharpVertexList();
 
@@ -68,11 +73,23 @@ private:
 
   TopoDS_Shape myPipe3d;
   TopoDS_Shape myPipe2d;
+  TopoDS_Shape myUnifiedPipe2d;
+  ShapeUpgrade_UnifySameDomain myUnifier;
   TopoDS_Wire myInlet;
   TopoDS_Wire myOutlet;
   //TopoDS_Shape myLeftBank;
   //TopoDS_Shape myRightBank;
 
+  Standard_Integer myStatus;
+  //0 - Ok
+  //1 - some edges does not belong to same plane or parallel (fillet can not be build)
+  //2 - can not create fillet at some vertex with given radius: the length of some edge is too small respective to width of canal
+  //3 - fillet failed at some vertex
+  //4 - fillet failed
+  //5 - projection failed
+  //6 - sweep 3d failed
+  //7 - sweep 2d failed
+
   Standard_Real myFilletRadius;
   TopTools_ListOfShape mySharpVertexList;
   Standard_Real myTolAngular;