Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_MeshPyramid.lxx
1 // File:        SMDS_MeshPyramid.lxx
2 // Created:     Thu Jan 24 17:06:47 2002
3 // Author:      Jean-Michel BOULCOURT
4 //              <jmb@coulox.paris1.matra-dtv.fr>
5
6
7
8 //=======================================================================
9 //function : GetConnections
10 //purpose  : 
11 //           
12 //=======================================================================
13
14 inline Standard_Address SMDS_MeshPyramid::GetConnections() const
15 {
16   return (Standard_Address)&myNodes;
17 }
18
19 //=======================================================================
20 //function : GetConnection
21 //purpose  : 
22 //           
23 //=======================================================================
24
25 inline Standard_Integer SMDS_MeshPyramid::GetConnection(const Standard_Integer rank) const
26 {
27   return myNodes[rank-1];
28 }
29
30 //=======================================================================
31 //function : ComputeKey
32 //purpose  : compute the Key of the volume based on the ids of its bounding nodes
33 //           
34 //=======================================================================
35
36 inline void SMDS_MeshPyramid::ComputeKey()
37 {
38   //  myKey = (myNodes[0]<<4) + (myNodes[1]<<3) + (myNodes[2]<<2) + (myNodes[3]<<1) + myNodes[4];
39   myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3] + myNodes[4];
40 }
41
42 //=======================================================================
43 //function : NbEdges
44 //purpose  : 
45 //=======================================================================
46
47 inline Standard_Integer SMDS_MeshPyramid::NbEdges() const
48 {
49   return 8;
50 }
51
52 //=======================================================================
53 //function : NbFaces
54 //purpose  : 
55 //=======================================================================
56
57 inline Standard_Integer SMDS_MeshPyramid::NbFaces() const
58 {
59   return 5;
60 }
61