Skip to content

fix(io): remove VTK warnings when reading meshes

Marc SCHWEITZER requested to merge 720-remove-vtk-warnings-when-reading-meshes into dev

Description

Redirect VTK messages (warnings/errors) in a VTK.log file.

Closes #720 (closed)

How to test it?

Download this mesh : https://owncloud.ircad.fr/index.php/s/jQ5aChvPDVKhDEm

  1. Try to load it without this MR you should have:
Warning: In /build/vtk7-3x4Jlg/vtk7-7.1.1+dfsg2/IO/XML/vtkXMLReader.cxx, line 909
vtkXMLPolyDataReader (0x555d23927880): Could not locate key vtkDataArray::L2_NORM_FINITE_RANGE. Is the module in which it is defined linked?

printed in the terminal.

  1. try with the MR, you should find a VTK.log file in the current directory where you have launched your app.

  2. All VTK log should be printed in the VTK.log file.

  3. Everytime you launch an app the VTK.log is cleared and filled again.

Edited by Marc SCHWEITZER

Merge request reports