(ioVTK): VTK Mesh readers and writers only support VTK Legacy files format
requested to merge 483-iovtk-vtk-mesh-readers-and-writers-only-support-vtk-legacy-files-format into dev
What does this MR do?
Add more Mesh format in VTK readers/writers.
- VTK Polydata (*.vtp)
- Wavefront OBJ (*.obj)
- Stereo lithography format (*.stl)
- Polygonal File Format (*.ply)
This was added to improve compatibility with other VTK sofwares (paraview for example), it seems that the *.vtk format is a legacy format and we should use *.vtp when dealing with polydata (our ::fwData::Mesh).
Note: when using OBJ/PLY/STL format you may loose some informations (point normals/point color/...), often it saves only global geometry of the data (points, edges, ...).
How to test it?
- Run tests (be sure to have the latest dev version of sight-data LFS repository).
- Test as many application as you can !
- Try to load/save
::fwData::Mesh
::fwMedData::ModelSeries
&::fwMedDataSeriesDB
- Try to load mesh generated by other sofware (paraview, meshlab, ...) with several format and load it into VRRender or any other sight app.
Data
Basic data can be found on sight-data
Additional tests to run
-
Load/Save/Export/Import on Windows -
Save a Mesh on a OS / Load it on another
Associated Issues/Merge Requests
Closes #483 (closed)