append->AddInput(mListOfContours[i]->GetMesh());
}
append->Update();
- mMesh = append->GetOutput();
+
+ mMesh = vtkSmartPointer<vtkPolyData>::New();
+ mMesh->DeepCopy(append->GetOutput());
mMeshIsUpToDate = true;
}
//--------------------------------------------------------------------
int mNumber;
std::vector<double> mColor;
std::vector<DicomRT_Contour::Pointer> mListOfContours;
- vtkPolyData * mMesh;
+ vtkSmartPointer<vtkPolyData> mMesh;
bool mMeshIsUpToDate;
vvImage::Pointer mImage;
double mBackgroundValue;