[vtkusers] vtkOBJReader example for C++

Sergey Programmer croooter at gmail.com
Tue Jul 13 08:44:57 EDT 2010


Hi all!

Can anybody provide an example (C++ would be perfect) how to read OBJ files
using vtkOBJReader? I'm trying the following with no success:

My class extends vtkOBJReader, in the Open method I do

    SetFileName( fname.c_str() );
    Update();
    vtkDataObject * src = GetOutput();

and then src is 0 even after I specified correct filename. What am I doing
wrong?

Regards,
C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100713/bea01bca/attachment.htm>


More information about the vtkusers mailing list