1 // File: SMDS_MeshEdge.lxx
2 // Created: Thu Jan 24 17:06:47 2002
3 // Author: Jean-Michel BOULCOURT
4 // <jmb@coulox.paris1.matra-dtv.fr>
7 //=======================================================================
8 //function : ComputeKey
9 //purpose : compute the Key of the edge based on the ids of its bounding nodes
11 //=======================================================================
13 inline void SMDS_MeshEdge::ComputeKey()
15 // myKey = (myNodes[0] << 2) + myNodes[1];
16 myKey = myNodes[0] + myNodes[1];
19 //=======================================================================
23 //=======================================================================
25 inline Standard_Integer SMDS_MeshEdge::GetKey() const
30 //=======================================================================
31 //function : GetConnection
34 //=======================================================================
36 inline Standard_Integer SMDS_MeshEdge::GetConnection(const Standard_Integer rank) const
38 return myNodes[rank-1];
41 //=======================================================================
42 //function : GetConnections
45 //=======================================================================
47 inline Standard_Address SMDS_MeshEdge::GetConnections() const
49 return (Standard_Address)&myNodes;