From 1e31faf4a9d9a4afc84ef1c8ce15ff91c694ed31 Mon Sep 17 00:00:00 2001 From: Sujin Philip <sujin.philip@kitware.com> Date: Thu, 5 May 2016 14:13:00 -0400 Subject: [PATCH] Fix vtkPolyData Reset Reset should delete the Links and Cells objects so that they can be rebuilt when needed. --- Common/DataModel/vtkPolyData.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/DataModel/vtkPolyData.cxx b/Common/DataModel/vtkPolyData.cxx index 620e5fadcbc..8f1c23184af 100644 --- a/Common/DataModel/vtkPolyData.cxx +++ b/Common/DataModel/vtkPolyData.cxx @@ -1390,6 +1390,10 @@ void vtkPolyData::Reset() { this->Strips->Reset(); } + + // discard Links and Cells + this->DeleteLinks(); + this->DeleteCells(); } //---------------------------------------------------------------------------- -- GitLab