]> SALOME platform Git repositories - plugins/netgenplugin.git/blob - src/NETGENPlugin/NETGENPlugin_Mesher.hxx
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_Mesher.hxx
1 //  NETGENPlugin : C++ implementation
2 //
3 //  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //
22 // File      : NETGENPlugin_Mesher.hxx
23 // Author    : Michael Sazonov (OCN)
24 // Date      : 31/03/2006
25 // Project   : SALOME
26 // $Header$
27 //=============================================================================
28
29 #ifndef _NETGENPlugin_Mesher_HXX_
30 #define _NETGENPlugin_Mesher_HXX_
31
32 #include "NETGENPlugin_Defs.hxx"
33 #include "StdMeshers_FaceSide.hxx"
34
35 class SMESH_Mesh;
36 class SMESHDS_Mesh;
37 class TopoDS_Shape;
38 class NETGENPlugin_Hypothesis;
39 namespace netgen {
40   class OCCGeometry;
41 }
42
43 /*!
44  * \brief This class calls the NETGEN mesher of OCC geometry
45  */
46
47 class NETGENPLUGIN_EXPORT NETGENPlugin_Mesher 
48 {
49  public:
50   // ---------- PUBLIC METHODS ----------
51
52   NETGENPlugin_Mesher (SMESH_Mesh* mesh, const TopoDS_Shape& aShape,
53                        const bool isVolume);
54
55   void SetParameters(const NETGENPlugin_Hypothesis* hyp);
56
57   bool Compute();
58
59   static void PrepareOCCgeometry(netgen::OCCGeometry& occgeom,
60                                  const TopoDS_Shape&  shape);
61
62   static void RemoveTmpFiles();
63
64  private:
65   SMESH_Mesh*          _mesh;
66   const TopoDS_Shape&  _shape;
67   bool                 _isVolume;
68   bool                 _optimize;
69 };
70
71 #endif