[vtkusers] writing .obj files
Greg Hanowski
greg at tekknow.net
Fri Sep 13 17:36:57 EDT 2013
John,
How would I determine that?
I was able to get the WritePLY script to compile and run, but not WriteOBJ.
When I imported the .ply file into Blender, however, it showed up as a
series of points instead of centerlines. So I'd prefer to get WriteOBJ to
work.
I've done some other things and now I'm getting the following error:
Error 1 error C2504: 'vtkExporter' : base class undefined
C:\Users\Greg\Documents\VTK\VTK6.0.0.0\Source\IO\Export\vtkOBJExporter.h
When I double-click on the error it jumps to the following line in
vtkOBJExporter.h:
class VTKIOEXPORT_EXPORT vtkOBJExporter : public vtkExporter
Anybody have any other ideas?
Greg
From: John Drescher [mailto:drescherjm at gmail.com]
Sent: Thursday, September 12, 2013 10:15 AM
To: Greg Hanowski
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] writing .obj files
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?
Is VTK_RENDERING_EXPORT somehow not defined?
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130913/b67d04b2/attachment.htm>
More information about the vtkusers
mailing list