Salome HOME
0020095: EDF 896 SMESH : Advanced Mesh info on a group
[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_0DElement,
40         SMDSAbs_NbElementTypes
41 };
42
43 /*! enumeration for element geometry type */
44 enum SMDSAbs_GeometryType
45 {
46   // 0D element
47   SMDSGeom_POINT,
48   // 1D element
49   SMDSGeom_EDGE,
50   // 2D element
51   SMDSGeom_TRIANGLE,
52   SMDSGeom_QUADRANGLE,
53   SMDSGeom_POLYGON,
54   // 3D element
55   SMDSGeom_TETRA,
56   SMDSGeom_PYRAMID,
57   SMDSGeom_HEXA,
58   SMDSGeom_PENTA,
59   SMDSGeom_POLYHEDRA,
60 };
61
62
63 enum SMDSAbs_ElementOrder {
64   ORDER_ANY,          /*! entities of any order */
65   ORDER_LINEAR,       /*! entities of 1st order */
66   ORDER_QUADRATIC     /*! entities of 2nd order */
67 };
68
69 /*!
70 * Enumeration of entity type uses in mesh info array,
71 *  and should be synchronised with enum in SMDS  
72 */
73 enum SMDSAbs_EntityType {
74   SMDSEntity_Node,
75   SMDSEntity_0D,
76   SMDSEntity_Edge,
77   SMDSEntity_Quad_Edge,
78   SMDSEntity_Triangle,
79   SMDSEntity_Quad_Triangle,
80   SMDSEntity_Quadrangle,
81   SMDSEntity_Quad_Quadrangle,
82   SMDSEntity_Polygon,
83   SMDSEntity_Quad_Polygon,
84   SMDSEntity_Tetra,
85   SMDSEntity_Quad_Tetra,
86   SMDSEntity_Pyramid,
87   SMDSEntity_Quad_Pyramid,
88   SMDSEntity_Hexa,
89   SMDSEntity_Quad_Hexa,
90   SMDSEntity_Penta,
91   SMDSEntity_Quad_Penta,
92   SMDSEntity_Polyhedra,
93   SMDSEntity_Quad_Polyhedra,
94   SMDSEntity_Last
95 };
96
97 #endif