VTK parser of InputMeshTri is broken

Submitted by Daniel Queteschiner on
Attachment Size
testsurface.vtk_.tar_.gz 499 bytes
ckloss

Hi Daniel,

thanks a lot! I'll have a look for the next release!

Best wishes
Christoph

Sun, 11 Oct 2015 - 16:58 Permalink
ckloss

Hi Daniel,

thanks again. It's noted, but will not be fixed immediately in the next release - it's on the list for the following release

Best wishes
Christoph

Tue, 5 Jan 2016 - 12:49 Permalink

In InputMeshTri::meshtrifile_vtk
https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/3.2.1/src/input_me…

The line counter is off by one due to skipping of the first line in the VTK file.
The check for the line 'DATASET UNSTRUCTURED_GRID' is wrong.
(see InputMeshTet for working version)

Suggested enhancement:
Accept lines with more than 3 values in the POINTS section of the VTK file.
The VTK library typically writes out up to 3 points (9 values) per line.

Attached a VTK file for testing.