[vtkusers] vtkOBJReader example for C++

Bill Lorensen bill.lorensen at gmail.com
Tue Jul 13 09:00:22 EDT 2010


http://www.vtk.org/Wiki/VTK/Examples/IO/ReadOBJ

On Tue, Jul 13, 2010 at 8:44 AM, Sergey Programmer <croooter at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list