[vtkusers] writing .obj files

Greg Hanowski greg at tekknow.net
Thu Sep 12 12:02:25 EDT 2013


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?

 

Thank you,

Greg

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


More information about the vtkusers mailing list