Closed bcipolli closed 8 years ago
I would hope/expect that the order of values output by read_vtk allows them to be fed back to write_vtk. Instead,
read_vtk
write_vtk
faces, lines, indices, points, npoints, scalars, scalar_names, input_vtk = read_vtk(...) def write_vtk(output_vtk, points, indices, lines, faces, scalars, scalar_names, scalar_type)
faces, lines, indices, points, npoints, scalars, scalar_names, input_vtk = read_vtk(...)
def write_vtk(output_vtk, points, indices, lines, faces, scalars, scalar_names, scalar_type)
I would suggest changing one to match the other, so I can do:
vtk_data = read_vtk(filename) # some manip of vtk_data write_vtk(filename, *vtk_data[:-1])
Done -- please give it a try!
tested, works :+1: thanks!
I would hope/expect that the order of values output by
read_vtk
allows them to be fed back towrite_vtk
. Instead,I would suggest changing one to match the other, so I can do: