1 // HexoticPlugin : C++ implementation
3 // Copyright (C) 2006 OPEN CASCADE, CEA/DEN, EDF R&D
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.
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.
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
19 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 // File : HexoticPlugin_Hexotic.hxx
23 // Author : Lioka RAZAFINDRAZAKA (CEA)
26 //=============================================================================
28 #ifndef _HexoticPlugin_Hexotic_HXX_
29 #define _HexoticPlugin_Hexotic_HXX_
31 #include "SMESH_3D_Algo.hxx"
32 #include "SMESH_Mesh.hxx"
33 #include "Utils_SALOME_Exception.hxx"
36 class HexoticPlugin_Hypothesis;
38 class HexoticPlugin_Hexotic: public SMESH_3D_Algo
41 HexoticPlugin_Hexotic(int hypId, int studyId, SMESH_Gen* gen);
42 virtual ~HexoticPlugin_Hexotic();
44 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
45 const TopoDS_Shape& aShape,
46 SMESH_Hypothesis::Hypothesis_Status& aStatus);
48 void SetParameters(const HexoticPlugin_Hypothesis* hyp);
50 virtual bool Compute(SMESH_Mesh& aMesh,
51 const TopoDS_Shape& aShape);
53 ostream & SaveTo(ostream & save);
54 istream & LoadFrom(istream & load);
55 friend ostream & operator << (ostream & save, HexoticPlugin_Hexotic & hyp);
56 friend istream & operator >> (istream & load, HexoticPlugin_Hexotic & hyp);
59 const HexoticPlugin_Hypothesis* _hypothesis;
65 bool _hexoticQuadrangles;
66 bool _hexoticIgnoreRidges;
67 bool _hexoticInvalidElements;
68 int _hexoticSharpAngleThreshold;
69 SMDS_MeshNode** _tabNode;