Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_MeshFace.cxx
1 using namespace std;
2 // File:        SMDS_MeshFace.cxx
3 // Created:     Wed Jan 23 17:02:27 2002
4 // Author:      Jean-Michel BOULCOURT
5 //              <jmb@coulox.paris1.matra-dtv.fr>
6
7
8 #include "SMDS_MeshFace.ixx"
9
10
11 //=======================================================================
12 //function : SMDS_MeshFace
13 //purpose  : 
14 //=======================================================================
15
16 SMDS_MeshFace::SMDS_MeshFace(const Standard_Integer ID, const Standard_Integer nb) 
17 :SMDS_MeshElement(ID,nb,SMDSAbs_Face)
18 {
19 }
20
21
22 //=======================================================================
23 //function : NbEdges
24 //purpose  : 
25 //=======================================================================
26
27 Standard_Integer SMDS_MeshFace::NbEdges() const
28 {
29   return myNbNodes;
30 }
31
32 //=======================================================================
33 //function : Print
34 //purpose  : 
35 //=======================================================================
36
37 void SMDS_MeshFace::Print(Standard_OStream& OS) const
38 {
39   OS << "face <" << myID <<" > : ";
40   for (Standard_Integer i=1; i<myNbNodes; ++i)
41     OS << GetConnection(i) << ",";
42   OS << GetConnection(myNbNodes) << ") " << endl;
43 }
44
45