2 // File: SMDS_MeshEdge.cxx
3 // Created: Wed Jan 23 17:02:20 2002
4 // Author: Jean-Michel BOULCOURT
5 // <jmb@coulox.paris1.matra-dtv.fr>
8 #include "SMDS_MeshEdge.ixx"
10 //=======================================================================
11 //function : SMDS_MeshEdge
13 //=======================================================================
15 SMDS_MeshEdge::SMDS_MeshEdge(const Standard_Integer ID,
16 const Standard_Integer idnode1,
17 const Standard_Integer idnode2) :
18 SMDS_MeshElement(ID,2,SMDSAbs_Edge)
20 SetConnections(idnode1,idnode2);
24 //=======================================================================
25 //function : SetConnections
27 //=======================================================================
28 void SMDS_MeshEdge::SetConnections(const Standard_Integer idnode1,
29 const Standard_Integer idnode2)
31 Standard_Integer idmin = (idnode1 < idnode2? idnode1 : idnode2);
34 if (idmin == idnode1) {
41 //=======================================================================
44 //=======================================================================
46 void SMDS_MeshEdge::Print(Standard_OStream& OS) const
48 OS << "edge <" << myID <<"> : (" << myNodes[0] << " , " << myNodes[1] << ") " << endl;