fix(io): remove VTK warnings when reading meshes
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
- 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.
-
try with the MR, you should find a VTK.log file in the current directory where you have launched your app.
-
All VTK log should be printed in the VTK.log file.
-
Everytime you launch an app the VTK.log is cleared and filled again.