]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROData/HYDROData_Projection.h
Salome HOME
Merge branch 'BR_H2018_2' of https://codev-tuleap.cea.fr/plugins/git/salome/hydro...
[modules/hydro.git] / src / HYDROData / HYDROData_Projection.h
1 // Copyright (C) 2014-2015  EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
6 //
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10 // Lesser General Public License for more details.
11 //
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
15 //
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17 //
18
19 #ifndef HYDROData_Projection_HeaderFile
20 #define HYDROData_Projection_HeaderFile
21
22 #include <Standard_Real.hxx>
23 #include <IntCurvesFace_ShapeIntersector.hxx>
24 #include <TopTools_ListOfShape.hxx>
25 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
26
27 class TopoDS_Shape;
28 class TopoDS_Edge;
29 class TopoDS_Face;
30 class TopoDS_Wire;
31 class TopoDS_Vertex;
32 class gp_Pnt;
33
34 class HYDROData_Make3dMesh
35 {
36 public:
37   HYDROData_Make3dMesh( const TopoDS_Shape& aShape,
38                         const Standard_Real Tolerance );
39   
40   Standard_Boolean GetHighestOriginal(const Standard_Real aX,
41                                       const Standard_Real aY,
42                                       gp_Pnt& HighestPoint );
43   
44 private:
45   IntCurvesFace_ShapeIntersector myIntersector;
46 };
47
48 class HYDROData_Projection
49 {
50 public:
51   static TopoDS_Edge FindClosestDirection( const TopoDS_Vertex& StartVertex,
52                                            const TopTools_ListOfShape& Candidates,
53                                            const gp_Vec& StartDir );
54   static TopoDS_Wire BuildOutWire( const TopTools_IndexedDataMapOfShapeListOfShape& VEmap,
55                                    const TopoDS_Vertex& StartVertex,
56                                    TopoDS_Edge&   StartEdge );
57   static TopoDS_Face MakeProjection( const TopoDS_Shape& aShape );
58 };
59
60 #endif