Salome HOME
Copyright update 2021
[tools/medcoupling.git] / src / INTERP_KERNEL / IntersectorCU3D.hxx
1 // Copyright (C) 2009-2021  OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // File      : IntersectorCU3D.hxx
21 // Created   : Thu Dec 17 14:10:00 2009
22 // Author    : Edward AGAPOV (eap)
23 //
24 #ifndef __IntersectorCU3D_HXX__
25 #define __IntersectorCU3D_HXX__
26
27 #include "IntersectorCU.hxx"
28 #include "SplitterTetra.hxx"
29
30 namespace INTERP_KERNEL
31 {
32   class _Cartesian3D2UnstructHexMesh;
33
34   template<class MyCMeshType, class MyUMeshType, class MyMatrix >
35   class IntersectorCU3D : public IntersectorCU<MyCMeshType,MyUMeshType,MyMatrix,IntersectorCU3D<MyCMeshType,MyUMeshType,MyMatrix> >
36   {
37   public:
38     typedef typename MyUMeshType::MyConnType UConnType;
39     typedef typename MyCMeshType::MyConnType CConnType;
40   public:
41     IntersectorCU3D(const MyCMeshType& meshS, const MyUMeshType& meshT, SplittingPolicy splitting_policy);
42     ~IntersectorCU3D();
43     double intersectGeometry(UConnType icellT, const std::vector<CConnType>& icellC);
44
45   private:
46
47     typedef SplitterTetra2<MyUMeshType, _Cartesian3D2UnstructHexMesh > TSplitter;
48     typedef SplitterTetra <_Cartesian3D2UnstructHexMesh >              TTetra;
49     _Cartesian3D2UnstructHexMesh* _uHexMesh;
50     TSplitter*                    _split;
51   };
52 }
53
54
55 #endif