exchanged deprecated data array read function
This commit is contained in:
parent
7136db1fd8
commit
a3196669ea
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue