VTK parser of InputMeshTri is broken

Submitted by Daniel Queteschiner on Wed, 09/09/2015 - 12:38

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

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.

AttachmentSize
Binary Data testsurface.vtk_.tar_.gz499 bytes
ckloss's picture

ckloss | Sun, 10/11/2015 - 16:58

Hi Daniel,

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

Best wishes
Christoph

ckloss's picture

ckloss | Tue, 01/05/2016 - 12:49

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