[vtkusers] writing .obj files

John Drescher drescherjm at gmail.com
Thu Sep 12 12:15:22 EDT 2013


On Thu, Sep 12, 2013 at 12:02 PM, Greg Hanowski <greg at tekknow.net> wrote:

> Hello VTKers,****
>
> ** **
>
> I'm trying to convert a .vtp file to .obj file.  I googled the topic and
> found David Doria's post about using his WriteOBJ.cpp but to first replace
> vtkExporter.cpp/h with his version which contains WriteAPolyData.  I did
> that but now how to compile it? ****
>
> ** **
>
> I loaded the ALL_BUILD.sln created by cmake into Microsoft Visual Studio
> Express 2012 for Windows Desktop and ran Build Solution under the Build
> menu.  It cranked awhile then reported that 7 projects needed rebuilding,
> would I like to do that?  I clicked yes.  Then it cranked some more and
> came back with 1089 errors.  The first of which is:****
>
> ** **
>
> Error      1              error C2470: 'vtkOBJExporter' : looks like a
> function definition, but there is no parameter list; skipping apparent body
> (C:\Users\Greg\Documents\VTK\VTK6.0.0.0\Source\IO\Export\vtkExporter.cxx)
> c:\users\greg\documents\vtk\vtk6.0.0.0\source\io\export\vtkExporter.h
> 35           1              vtkIOExport****
>
> ** **
>
> If I double-click on the error, it jumps to this line in vtkExporter.h:***
> *
>
> class VTK_RENDERING_EXPORT vtkOBJExporter : public vtkExporter****
>
> ** **
>
> Can anyone shed some light?****
>
> ** **
> <http://www.vtk.org/mailman/listinfo/vtkusers>
>

Is VTK_RENDERING_EXPORT somehow not defined?

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130912/bd4e6baa/attachment.htm>


More information about the vtkusers mailing list