From b2302ce8e9e1a2b1c144281dd2ac1ea7752b9950 Mon Sep 17 00:00:00 2001 From: "Dennis.Glaeser" <dennis.glaeser@iws.uni-stuttgart.de> Date: Wed, 8 Jul 2020 09:58:34 +0200 Subject: [PATCH] [bin][extractlinedata] add support for .vtp files --- bin/postprocessing/extractlinedata.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/postprocessing/extractlinedata.py b/bin/postprocessing/extractlinedata.py index a854982774..25ed6cc85e 100644 --- a/bin/postprocessing/extractlinedata.py +++ b/bin/postprocessing/extractlinedata.py @@ -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 -- GitLab