File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -296,16 +296,16 @@ def write_to_vtk(self, filename=Path('tracks.vtp')):
296296 for state in pt .states :
297297 points .InsertNextPoint (state ['r' ])
298298
299- # Create VTK line and assign points to line.
300- n = pt .states .size
301- line = vtk .vtkPolyLine ()
302- line .GetPointIds ().SetNumberOfIds (n )
303- for i in range (n ):
304- line .GetPointIds ().SetId (i , point_offset + i )
305- point_offset += n
306-
307- # Add line to cell array
308- cells .InsertNextCell (line )
299+ # Create VTK line and assign points to line.
300+ n = pt .states .size
301+ line = vtk .vtkPolyLine ()
302+ line .GetPointIds ().SetNumberOfIds (n )
303+ for i in range (n ):
304+ line .GetPointIds ().SetId (i , point_offset + i )
305+ point_offset += n
306+
307+ # Add line to cell array
308+ cells .InsertNextCell (line )
309309
310310 data = vtk .vtkPolyData ()
311311 data .SetPoints (points )
You can’t perform that action at this time.
0 commit comments