Salome HOME
Updated copyright comment
[plugins/gmshplugin.git] / src / GMSHPlugin / GMSHPlugin_GMSH_3D_SA.hxx
1 // Copyright (C) 2012-2015  ALNEOS
2 // Copyright (C) 2016-2024  EDF
3 //
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 //
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.alneos.com/ or email : contact@alneos.fr
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 #ifndef _GMSHPlugin_GMSH_3D_SA_HXX_
22 #define _GMSHPlugin_GMSH_3D_SA_HXX_
23
24 #include "GMSHPlugin_Defs.hxx"
25 #include "GMSHPlugin_GMSH_3D.hxx"
26
27 #include <SMESH_DriverShape.hxx>
28 #include <SMESH_DriverMesh.hxx>
29
30 #include "SMESH_Algo.hxx"
31 #include "SMESH_subMesh.hxx"
32 #include "SMESH_Mesh.hxx"
33
34 class GMSHPLUGIN_EXPORT GMSHPlugin_GMSH_3D_SA: public GMSHPlugin_GMSH_3D
35 {
36 public:
37   GMSHPlugin_GMSH_3D_SA();
38   virtual ~GMSHPlugin_GMSH_3D_SA();
39
40   int run(const std::string input_mesh_file,
41           const std::string shape_file,
42           const std::string hypo_file,
43           const std::string element_orientation_file,
44           const std::string new_element_file,
45           const std::string output_mesh_file);
46
47   bool Compute( TopoDS_Shape &aShape, SMESH_Mesh& aMesh, std::string new_element_file, std::string element_orientation_file, bool output_mesh );
48
49 private:
50   
51   void fillNewElementFile( std::vector< const SMDS_MeshNode* > &nodeVec, GMSHPlugin_Mesher &mesher, std::string new_element_file );
52   void importGMSHParameters( const std::string hypo_file );
53   void fillListOfElementsOriented(SMESH_Mesh& aMesh, std::string element_orientation_file, 
54                                   std::map<const SMDS_MeshElement*, bool, TIDCompare>& listElements );
55 };
56
57 #endif