Salome HOME
ObjectPool and SMDS_Position
[modules/smesh.git] / src / SMDS / SMDS_MeshElement.cxx
index 5f16698859141299412367615a6251e3a8b85b2c..fdbeffd86f0a1c19959efe7003c119ec48407b26 100644 (file)
@@ -34,7 +34,9 @@
 
 using namespace std;
 
-SMDS_MeshElement::SMDS_MeshElement(int ID):myID(ID)
+int SMDS_MeshCell::nbCells = 0;
+
+SMDS_MeshElement::SMDS_MeshElement(int ID):myID(ID), myMeshId(-1), myShapeId(-1)
 {
 }
 
@@ -246,5 +248,11 @@ int SMDS_MeshElement::GetNodeIndex( const SMDS_MeshNode* node ) const
 
 SMDS_MeshCell::SMDS_MeshCell()
 {
-    myVtkID = -1;
-};
\ No newline at end of file
+  nbCells++;
+  myVtkID = -1;
+};
+
+SMDS_MeshCell::~SMDS_MeshCell()
+{
+  nbCells--;
+}
\ No newline at end of file