1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __INTERPOLATION3D2D_HXX__
21 #define __INTERPOLATION3D2D_HXX__
26 #include "INTERPKERNELDefines.hxx"
27 #include "Interpolation.hxx"
28 #include "NormalizedUnstructuredMesh.hxx"
29 #include "InterpolationOptions.hxx"
31 namespace INTERP_KERNEL
34 * Contrary to its name this class deals with 2D mesh in source and 3D mesh in target.
35 * The meshdim of 'MyMeshType' in input is ignored that's why 'meshS' and 'meshT'
37 * '_duplicate_faces' attribute stores duplicated faces in the following format.
38 * The key of '_duplicate_faces' represents the 2D cellId that is shared by
39 * more than one 3D target cell, and the value of '_duplicate_faces'
40 * the 3D target cells. The size of the value of '_duplicate_faces' is more than or equal to 2.
42 class INTERPKERNEL_EXPORT Interpolation3D2D : public Interpolation<Interpolation3D2D>
45 typedef std::map<int,std::set<int> > DuplicateFacesType;
48 Interpolation3D2D(const InterpolationOptions& io);
49 template<class MyMeshType, class MyMatrixType>
50 int interpolateMeshes(const MyMeshType& srcMesh,
51 const MyMeshType& targetMesh,
54 DuplicateFacesType retrieveDuplicateFaces() const
56 return _duplicate_faces;
59 SplittingPolicy _splitting_policy;
60 DuplicateFacesType _duplicate_faces;