exchanged deprecated data array read function

This commit is contained in:
Philip Eisenlohr 2014-11-18 15:22:00 +00:00
parent 7136db1fd8
commit a3196669ea
1 changed files with 3 additions and 3 deletions

View File

@ -86,10 +86,10 @@ for file in files:
Polydata = vtk.vtkPolyData() Polydata = vtk.vtkPolyData()
Points = vtk.vtkPoints() Points = vtk.vtkPoints()
Vertices = vtk.vtkCellArray() Vertices = vtk.vtkCellArray()
pos = table.data_asArray(range(column['vector'][options.pos],\ table.data_readArray(range(column['vector'][options.pos],\
column['vector'][options.pos]+datainfo['vector']['len'])) column['vector'][options.pos]+datainfo['vector']['len']))
for p in pos: for p in table.data:
id = Points.InsertNextPoint(p) id = Points.InsertNextPoint(p)
Vertices.InsertNextCell(1) Vertices.InsertNextCell(1)
Vertices.InsertCellPoint(id) Vertices.InsertCellPoint(id)