Salome HOME
yfr : Merge with v1.2
[modules/smesh.git] / src / SMDS / SMDS_MeshVolume.cxx
1 using namespace std;
2 // File:        SMDS_MeshVolume.cxx
3 // Created:     Wed Jan 23 17:02:34 2002
4 // Author:      Jean-Michel BOULCOURT
5 //              <jmb@coulox.paris1.matra-dtv.fr>
6
7
8 #include "SMDS_MeshVolume.ixx"
9 #include <Standard_ConstructionError.hxx>
10
11 //=======================================================================
12 //function : SMDS_MeshVolume
13 //purpose  : 
14 //=======================================================================
15
16 SMDS_MeshVolume::SMDS_MeshVolume(const Standard_Integer ID, const Standard_Integer nb) 
17 :SMDS_MeshElement(ID,nb,SMDSAbs_Volume)
18 {
19 }
20
21 //=======================================================================
22 //function : Print
23 //purpose  : 
24 //=======================================================================
25
26 void SMDS_MeshVolume::Print(Standard_OStream& OS) const
27 {
28   OS << "volume <" << myID <<"> : " ;
29   for (Standard_Integer i=1; i<myNbNodes; ++i)
30     OS << GetConnection(i) << ",";
31   OS << GetConnection(myNbNodes) << ") " << endl;
32 }
33
34