[vtkusers] Are blank lines allowed in the header of Legacy format VTK files?

Cory Quammen cory.quammen at kitware.com
Thu Oct 13 10:29:29 EDT 2016


Hi Ilene,

Looking at vtkDataReader::ReadHeader(), I see nothing that indicates any
blank lines are tolerated by the reader. I suggest having your code skip
blank lines to deal with any files you may encounter that may have blank
lines.

HTH,
Cory

On Tue, Oct 11, 2016 at 3:40 PM, drilene <Ilene.Cohen at bsci.com> wrote:

> I had implemented my code to only read the first 4 lines of the Leagcy file
> to get the: 1) version and identifier, 2) header, 3) file format and 4)
> dataset type. One of our test engineers found a file on the web that had a
> blank line between 3) and 4). This file failed in my code but loads in
> Paraview. So, I tried putting blank lines in the header and it appears that
> Paraview tolerates some blank lines such as 2 lines between 2) and 3) but
> no
> lines between 1) and 2). Is there an accepted standard regarding blank
> lines?
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/Are-blank-lines-allowed-in-the-header-of-Legacy-
> format-VTK-files-tp5740737.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161013/ed73a7e2/attachment.html>


More information about the vtkusers mailing list