Salome HOME
SMESHDS_Mesh structures
[modules/smesh.git] / src / SMDS / SMDS_MeshElement.cxx
index fdbeffd86f0a1c19959efe7003c119ec48407b26..f309847d171df8dde2cac977276c1b38dabf2809 100644 (file)
@@ -36,12 +36,12 @@ using namespace std;
 
 int SMDS_MeshCell::nbCells = 0;
 
-SMDS_MeshElement::SMDS_MeshElement(int ID):myID(ID), myMeshId(-1), myShapeId(-1)
+SMDS_MeshElement::SMDS_MeshElement(int ID):myID(ID), myMeshId(-1), myShapeId(-1), myIdInShape(-1)
 {
 }
 
-SMDS_MeshElement::SMDS_MeshElement(int id, UShortType meshId, ShortType shapeId):
-  myID(id), myMeshId(meshId), myShapeId(shapeId)
+SMDS_MeshElement::SMDS_MeshElement(int id, ShortType meshId, ShortType shapeId):
+  myID(id), myMeshId(meshId), myShapeId(shapeId), myIdInShape(-1)
 {
 }
 
@@ -246,7 +246,7 @@ int SMDS_MeshElement::GetNodeIndex( const SMDS_MeshNode* node ) const
   return -1;
 }
 
-SMDS_MeshCell::SMDS_MeshCell()
+SMDS_MeshCell::SMDS_MeshCell() : SMDS_MeshElement(-1)
 {
   nbCells++;
   myVtkID = -1;
@@ -255,4 +255,4 @@ SMDS_MeshCell::SMDS_MeshCell()
 SMDS_MeshCell::~SMDS_MeshCell()
 {
   nbCells--;
-}
\ No newline at end of file
+}