Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMDS / SMDS_MeshTetrahedron.lxx
1 // File:        SMDS_MeshTetrahedron.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_MeshTetrahedron::GetConnections() const
15 {
16   return (Standard_Address)&myNodes;
17 }
18
19 //=======================================================================
20 //function : GetConnection
21 //purpose  : 
22 //           
23 //=======================================================================
24
25 inline Standard_Integer SMDS_MeshTetrahedron::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_MeshTetrahedron::ComputeKey()
37 {
38   //  myKey = (myNodes[0]<<3) + (myNodes[1]<<2) + (myNodes[2]<<1) + myNodes[3];
39    myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3];
40 }
41
42
43 //=======================================================================
44 //function : NbEdges
45 //purpose  : 
46 //=======================================================================
47
48 inline Standard_Integer SMDS_MeshTetrahedron::NbEdges() const
49 {
50   return 6;
51 }
52
53 //=======================================================================
54 //function : NbFaces
55 //purpose  : 
56 //=======================================================================
57
58 inline Standard_Integer SMDS_MeshTetrahedron::NbFaces() const
59 {
60   return 4;
61 }
62