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>
8 #include "SMDS_MeshVolume.ixx"
9 #include <Standard_ConstructionError.hxx>
11 //=======================================================================
12 //function : SMDS_MeshVolume
14 //=======================================================================
16 SMDS_MeshVolume::SMDS_MeshVolume(const Standard_Integer ID, const Standard_Integer nb)
17 :SMDS_MeshElement(ID,nb,SMDSAbs_Volume)
21 //=======================================================================
24 //=======================================================================
26 void SMDS_MeshVolume::Print(Standard_OStream& OS) const
28 OS << "volume <" << myID <<"> : " ;
29 for (Standard_Integer i=1; i<myNbNodes; ++i)
30 OS << GetConnection(i) << ",";
31 OS << GetConnection(myNbNodes) << ") " << endl;