Hi,
I’m writing a ParaView filter in Python, and I need the output dataset to have the same topology and attributes as the input; only the point coordinates should to be modified. So I’m starting with this:
input = vtkDataSet.GetData(inInfoVec[0], 0)
output = vtkPolyData.GetData(outInfoVec, 0)
output.DeepCopy(input)
However, when I inspect the output afterwards, it looks like all points and their attributes get copied, all the cells are lost.
Is this the expected behavior of DeepCopy? And if so, what should I use to make a complete copy?