1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //=============================================================================
21 // File : NETGENPlugin_NETGEN_3D.hxx
22 // Moved here from SMESH_NETGEN_3D.hxx
23 // Created : lundi 27 Janvier 2003
24 // Author : Nadir BOUHAMOU (CEA)
26 // Copyright : CEA 2003
28 //=============================================================================
30 #ifndef _NETGENPlugin_NETGEN_3D_HXX_
31 #define _NETGENPlugin_NETGEN_3D_HXX_
33 #include "SMESH_3D_Algo.hxx"
34 #include "SMESH_Mesh.hxx"
35 #include "StdMeshers_MaxElementVolume.hxx"
36 #include "Utils_SALOME_Exception.hxx"
38 class NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo
41 NETGENPlugin_NETGEN_3D(int hypId, int studyId, SMESH_Gen* gen);
42 virtual ~NETGENPlugin_NETGEN_3D();
44 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
45 const TopoDS_Shape& aShape,
46 SMESH_Hypothesis::Hypothesis_Status& aStatus);
48 virtual bool Compute(SMESH_Mesh& aMesh,
49 const TopoDS_Shape& aShape);
51 ostream & SaveTo(ostream & save);
52 istream & LoadFrom(istream & load);
53 friend ostream & operator << (ostream & save, NETGENPlugin_NETGEN_3D & hyp);
54 friend istream & operator >> (istream & load, NETGENPlugin_NETGEN_3D & hyp);
57 double _maxElementVolume;
59 const StdMeshers_MaxElementVolume* _hypMaxElementVolume;