Salome HOME
PR: debug SMDS memimp
[modules/smesh.git] / src / SMDS / SMDS_VtkEdge.cxx
index 75a96b966ecf4eb33cc1fad64a4b7f0d3f885fe6..3b3e25882f96487de422da2bb89f9e345795111e 100644 (file)
@@ -6,6 +6,7 @@
 #include "utilities.h"
 
 #include <vector>
+#include <cassert>
 
 using namespace std;
 
@@ -48,6 +49,7 @@ int SMDS_VtkEdge::NbNodes() const
 {
        vtkUnstructuredGrid* grid =SMDS_Mesh::_meshList[myMeshId]->getGrid();
        int nbPoints = grid->GetCell(myVtkID)->GetNumberOfPoints();
+       assert(nbPoints >=2);
        return nbPoints;
 }