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