question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vtkOBJReader fails at reading .obj files

See original GitHub issue

I am trying to read some .obj files using ioUtils.readPolyData. For example this one:

polyData = ioUtils.readPolyData('Porsche_911_GT2.obj')

However I keep getting errors like this:

ERROR: In /root/VTK-7.1.1/IO/Geometry/vtkOBJReader.cxx, line 271
vtkOBJReader (0x2243970): Error reading 'v' at line 3

I have tried with different .obj files, but they all raise errors of that type. I also tried to open them with MeshLab and re-save them as .obj, but it didn’t work. I went searching for that /root/VTK-7.1.1/IO/Geometry/vtkOBJReader.cxx file but I soon realized that there is no VTK-7.1.1 directory inside /root. I am wondering if I installed the Director correctly, as I did it in two different ways:

It might seem a stupid thing (sorry it’s the first time I use Linux), but in both cases I didn’t install anything (in first case I only used make superbuild, in second case only extracted the .tar.gz on desktop). I am wondering if director and/or VTK have been installed at all. Any idea on this? Thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
janklimaszewskicommented, Mar 17, 2020

Hi, I resolved this error on my Ubuntu 18.04 system by changing the locale settings.

  1. Run in terminal: sudo update-locale LC_NUMERIC=C
  2. Log out and then log in.
0reactions
patmarioncommented, Sep 7, 2018

Hi, thanks for the update. It sounds to me like an issue that would be best fixed in VTK, so you may want to post to that bug tracker too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vtkOBJReader dosen't work inside qt main loop - Stack Overflow
I have a strange issue with reading OBJ file using VTK in Python. Code example below works fine for me. reader = vtk.vtkOBJReader()...
Read more >
[vtkusers] vtkObjReader doesn't support obj. files - Kitware
Please take a look at the vtkOBJReader.cxx file: ... (And often cannot > > be read straight into VTK since it supports per-face...
Read more >
vtkOBJReader Class Reference - VTK
vtkOBJReader is a source object that reads Wavefront .obj files. The output of this source object is polygonal data. See also: vtkOBJImporter. Online...
Read more >
ReadOBJ
This example demonstrates how to read a Wavefront OBJ file. ... return EXIT_FAILURE; } std::string filename = argv[1]; vtkNew<vtkOBJReader> reader; ...
Read more >
What are the limitations for reading OBJ files - FME Community
I have been given a sample OBJ file by a customer. It fails to load in the object inspector - which just shows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found