Removing data set line.

This commit is contained in:
Patrick Shriwise 2019-02-26 20:45:11 -06:00
parent 3175a3be1d
commit 16fac7cc07

View file

@ -38,10 +38,8 @@ def main():
data = vtk.vtkIntArray()
data.SetName("id")
# pass h5data as a "hint" that no copy/allocation is necessary
# set the array using the h5data array
data.SetArray(h5data, h5data.size, True)
# set the data array
data.array = h5data
# add data to image grid
grid.GetCellData().AddArray(data)