Ask Your Question

Revision history [back]

QApplication + cv::viz::Mesh::load: Parsing error

I'm trying to load an .obj file using cv::viz::Mesh::load method as follows:

cv::viz::Mesh::load(filename, 2);

It works fine, but if I call the same method after initializing a QApplication like so:

QApplication app(argc, argv);
cv::viz::Mesh::load(filename, 2);

I get the following error:

ERROR: In /home/zsn/Documents/VTK-6.3.0/IO/Geometry/vtkOBJReader.cxx, line 193 vtkOBJReader (0xf501a0): Error reading 'v' at line 2

Does anyone know how to resolve it?