1 // File: SMDS_MeshTriangle.lxx
2 // Created: Thu Jan 24 17:06:47 2002
3 // Author: Jean-Michel BOULCOURT
4 // <jmb@coulox.paris1.matra-dtv.fr>
9 //=======================================================================
10 //function : GetConnections
13 //=======================================================================
15 inline Standard_Address SMDS_MeshTriangle::GetConnections() const
17 return (Standard_Address)&myNodes;
20 //=======================================================================
21 //function : GetConnection
24 //=======================================================================
26 inline Standard_Integer SMDS_MeshTriangle::GetConnection(const Standard_Integer rank) const
28 return myNodes[rank-1];
31 //=======================================================================
32 //function : ComputeKey
33 //purpose : compute the Key of the face based on the ids of its bounding nodes
35 //=======================================================================
37 inline void SMDS_MeshTriangle::ComputeKey()
39 // myKey = (myNodes[0] << 2) + (myNodes[1] << 1) + (myNodes[2]);
40 myKey = myNodes[0] + myNodes[1] + myNodes[2];
44 //=======================================================================
45 //function : GetEdgeDefinedByNodes
47 //=======================================================================
48 inline void SMDS_MeshTriangle::GetEdgeDefinedByNodes(const Standard_Integer rank,
49 Standard_Integer& idnode1,
50 Standard_Integer& idnode2) const
52 idnode1 = myNodes[rank-1];
53 idnode2 = myNodes[rank % myNbNodes];