Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/smesh.git] / src / SMDS / SMDSAbs_ElementType.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  SMESH SMDS : implementaion of Salome mesh data structure
23 //  File   : SMDSAbs_ElementType.hxx
24 //  Module : SMESH
25 //
26 #ifndef _SMDSAbs_ElementType_HeaderFile
27 #define _SMDSAbs_ElementType_HeaderFile
28
29 ///////////////////////////////////////////////////////////////////////////////
30 /// Type (node, edge, face or volume) of elements
31 ///////////////////////////////////////////////////////////////////////////////
32 enum SMDSAbs_ElementType
33 {
34         SMDSAbs_All,
35         SMDSAbs_Node,
36         SMDSAbs_Edge,
37         SMDSAbs_Face,
38         SMDSAbs_Volume,
39         SMDSAbs_NbElementTypes
40 };
41
42 /*! enumeration for element geometry type */
43 enum SMDSAbs_GeometryType
44 {
45   // 0D element
46   SMDSGeom_POINT,
47   // 1D element
48   SMDSGeom_EDGE,
49   // 2D element
50   SMDSGeom_TRIANGLE,
51   SMDSGeom_QUADRANGLE,
52   SMDSGeom_POLYGON,
53   // 3D element
54   SMDSGeom_TETRA,
55   SMDSGeom_PYRAMID,
56   SMDSGeom_PENTA,
57   SMDSGeom_HEXA,
58   SMDSGeom_POLYHEDRA,
59 };
60
61
62 enum SMDSAbs_ElementOrder {
63   ORDER_ANY,          /*! entities of any order */
64   ORDER_LINEAR,       /*! entities of 1st order */
65   ORDER_QUADRATIC     /*! entities of 2nd order */
66 };
67
68 #endif