00001 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 // File : NETGENPlugin_NETGEN_2D_ONLY.hxx 00023 // Project : SALOME 00024 // Author : Edward AGAPOV (OCC) 00025 // 00026 #ifndef _NETGENPlugin_NETGEN_2D_ONLY_HXX_ 00027 #define _NETGENPlugin_NETGEN_2D_ONLY_HXX_ 00028 00029 #include "SMESH_2D_Algo.hxx" 00030 #include "SMESH_Mesh.hxx" 00031 00032 /*#define OCCGEOMETRY 00033 #include <occgeom.hpp> 00034 #include <meshing.hpp>//amv*/ 00035 00036 class StdMeshers_MaxElementArea; 00037 class StdMeshers_LengthFromEdges; 00038 class StdMeshers_QuadranglePreference; 00039 //class NETGENPlugin_Hypothesis; 00040 00041 /*namespace netgen { 00042 class OCCGeometry; 00043 }*/ 00044 /*namespace netgen { 00045 class OCCGeometry; 00046 extern int OCCGenerateMesh (OCCGeometry&, Mesh*&, int, int, char*); 00047 extern MeshingParameters mparam; 00048 }*/ 00049 00050 //using namespace netgen; 00051 00060 class NETGENPlugin_NETGEN_2D_ONLY: public SMESH_2D_Algo 00061 { 00062 public: 00063 NETGENPlugin_NETGEN_2D_ONLY(int hypId, int studyId, SMESH_Gen* gen); 00064 virtual ~NETGENPlugin_NETGEN_2D_ONLY(); 00065 00066 virtual bool CheckHypothesis(SMESH_Mesh& aMesh, 00067 const TopoDS_Shape& aShape, 00068 Hypothesis_Status& aStatus); 00069 00070 virtual bool Compute(SMESH_Mesh& aMesh, 00071 const TopoDS_Shape& aShape); 00072 00073 virtual bool Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape, 00074 MapShapeNbElems& aResMap); 00075 00076 /*static TError AddSegmentsToMesh(netgen::Mesh& ngMesh, 00077 OCCGeometry& geom, 00078 const TSideVector& wires, 00079 SMESH_MesherHelper& helper, 00080 vector< const SMDS_MeshNode* > & nodeVec); //amv*/ 00081 00082 protected: 00083 const StdMeshers_MaxElementArea* _hypMaxElementArea; 00084 const StdMeshers_LengthFromEdges* _hypLengthFromEdges; 00085 const StdMeshers_QuadranglePreference* _hypQuadranglePreference; 00086 // const NETGENPlugin_Hypothesis* _hypothesis; 00087 }; 00088 00089 #endif