Salome HOME
Fix crash at switching off faces of shrunk 3D mesh
[modules/gui.git] / src / VTKViewer / VTKViewer_ConvexTool.cxx
index 41a3b3b39402cbb95798c785d1423975345a24d6..3a3d8050b4dacdc2af3575fcf969eced241b9d70 100644 (file)
@@ -107,9 +107,8 @@ VTKViewer_Triangulator
   myPoints->Modified(); // the VTK bug
 
   vtkIdType aNumPts;
-  vtkIdType const *tmp(nullptr);
+  vtkIdType const *tmp(myPointIds);
   theInput->GetCellPoints(theCellId, aNumPts, tmp);
-  std::copy(tmp,tmp+aNumPts,myPointIds);
   if ( aNumPts > 0 ) {
     double anAbsoluteCoord[3];
     myPoints->SetNumberOfPoints(aNumPts);