2 // File: SMDS_MeshTriangle.cxx
3 // Created: Wed Jan 23 17:02:27 2002
4 // Author: Jean-Michel BOULCOURT
5 // <jmb@coulox.paris1.matra-dtv.fr>
8 #include "SMDS_MeshTriangle.ixx"
11 //=======================================================================
12 //function : SMDS_MeshTriangle
14 //=======================================================================
16 SMDS_MeshTriangle::SMDS_MeshTriangle(const Standard_Integer ID,
17 const Standard_Integer idnode1,
18 const Standard_Integer idnode2,
19 const Standard_Integer idnode3):SMDS_MeshFace(ID,3)
21 SetConnections(idnode1,idnode2,idnode3);
26 //=======================================================================
27 //function : SetConnections
29 //=======================================================================
30 void SMDS_MeshTriangle::SetConnections(const Standard_Integer idnode1,
31 const Standard_Integer idnode2,
32 const Standard_Integer idnode3)
34 Standard_Integer idmin = (idnode1 < idnode2 ? idnode1 : idnode2);
35 idmin = (idmin < idnode3 ? idmin : idnode3);
38 if (idmin == idnode1) {
41 } else if (idmin == idnode2) {