QVTKRenderWindowInteractor incompatibility with ASCII STL files
Tested on ubuntu 18.04, with python 3.6, vtk 9.0.0, Pyside2.
vtkSTLReader can read both binary and ascii files when used with a vtkRenderWindowInteractor. But, if you use a QVTKRenderWindowInteractor, it can only read binary stl files, it makes an error when reading a ascii file.
Here is the error:
StdErr: 2020-06-22 10:27:06.538 ( 0,464s) [ 4F2CA740] vtkSTLReader.cxx:685 ERR| vtkSTLReader (0x2027d80): STLReader: error while reading file ./bottle-ascii.stl at line 4: Parse error reading STL vertex StdErr: 2020-06-22 10:27:06.538 ( 0,464s) [ 4F2CA740] vtkExecutive.cxx:753 ERR| vtkCompositeDataPipeline (0x2017410): Algorithm vtkSTLReader(0x2027d80) returned failure for request: vtkInformation (0x2028ca0) Debug: Off Modified Time: 880 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FROM_OUTPUT_PORT: 0 ALGORITHM_AFTER_FORWARD: 1 FORWARD_DIRECTION: 0
The stl files that were tested are attached to this post. And the QVTK script that fails with ascii stl files. (The docstringed part is to quickly switch to a vtkRenderWindowInteractor, which works)