Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/smesh.git] / src / SMDS / SMDS_MeshHexahedron.lxx
1 // File:        SMDS_MeshHexahedron.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_MeshHexahedron::GetConnections() const
15 {
16   return (Standard_Address)&myNodes;
17 }
18
19 //=======================================================================
20 //function : GetConnection
21 //purpose  : 
22 //           
23 //=======================================================================
24
25 inline Standard_Integer SMDS_MeshHexahedron::GetConnection(const Standard_Integer rank) const
26 {
27   return myNodes[rank-1];
28 }
29
30 //=======================================================================
31 //function : ComputKey
32 //purpose  : compute theKey of the volume based on the ids of its bounding nodes
33 //           
34 //=======================================================================
35
36 inline void SMDS_MeshHexahedron::ComputeKey()
37 {
38   //  myKey = (myNodes[0]<<8) + (myNodes[1]<<7) + (myNodes[2]<<6) + (myNodes[3]<<5) 
39   //    +(myNodes[4]<<4) + (myNodes[5]<<3) + (myNodes[6]<<2) + myNodes[7];
40    myKey = myNodes[0] + myNodes[1] + myNodes[2] + myNodes[3] 
41         + myNodes[4] + myNodes[5] + myNodes[6] + myNodes[7];
42 }
43
44 //=======================================================================
45 //function : NbEdges
46 //purpose  : 
47 //=======================================================================
48
49 inline Standard_Integer SMDS_MeshHexahedron::NbEdges() const
50 {
51   return 12;
52 }
53
54 //=======================================================================
55 //function : NbFaces
56 //purpose  : 
57 //=======================================================================
58
59 inline Standard_Integer SMDS_MeshHexahedron::NbFaces() const
60 {
61   return 6;
62 }
63