Skip to content
Snippets Groups Projects
Commit b2302ce8 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[bin][extractlinedata] add support for .vtp files

parent d80665c5
No related branches found
No related tags found
1 merge request!2207Feature/improve extract line data
......@@ -45,7 +45,10 @@ for curFile in args['files']:
counter += 1
# load vtk file
vtkFile = XMLUnstructuredGridReader(FileName=curFile)
if os.path.splitext(curFile)[1] == ".vtp":
vtkFile = XMLPolyDataReader(FileName=curFile)
else:
vtkFile = XMLUnstructuredGridReader(FileName=curFile)
SetActiveSource(vtkFile)
# apply and configure PlotOverLine filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment