[vtkusers] Read .xyz with normals into PolyData doesn't work
Gib Bogle
g.bogle at auckland.ac.nz
Wed Sep 18 12:06:40 EDT 2013
Hi Florian,
The usual advice, which I have found to be good, is to use cmake to create the
VS project files. It seems to know what files are needed.
Gib
On 19/09/2013 3:57 a.m., Florian Schiffers wrote:
> Hello,
>
> I want to read an .xyz File with normals into vtkPolyData.
>
> I found this tutorial in the examples:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile
>
> So I tried to implement the DelimitedTextReader. But it doesn't work.
> I included all header files, like it was requested:
>
> /#include <vtkSmartPointer.h>//
> //#include <vtkProperty.h>//
> //#include <vtkPolyDataMapper.h>//
> //#include <vtkActor.h>//
> //#include <vtkDelimitedTextReader.h>//
> //#include <vtkDoubleArray.h>//
> //#include <vtkTable.h>//
> //#include <vtkPointData.h>//
> //#include <vtkRenderWindow.h>//
> //#include <vtkRenderWindowInteractor.h>//
> //#include <vtkRenderer.h>//
> //#include <vtkVertexGlyphFilter.h>/
>
>
> After that I tried to initialize the <vtkDelimtedTextReader> with this line:
>
> / vtkSmartPointer<vtkDelimitedTextReader> reader =/
> / vtkSmartPointer<vtkDelimitedTextReader>::New();/
>
> Unfortunately I get an error message, during the compilation (Using Visual
> Studio 2008):
> /
> //">Linking...//
> //1>ElectrodeDetectorPlugin.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport)
> public: static class vtkDelimitedTextReader * __cdecl
> vtkDelimitedTextReader::New(void)" (__imp_?New at vtkDelimitedTextReader@@SAPAV1 at XZ)
> referenced in function "public: static class vtkSmartPointer<class
> vtkDelimitedTextReader> __cdecl vtkSmartPointer<class
> vtkDelimitedTextReader>::New(void)"
> (?New@?$vtkSmartPointer at VvtkDelimitedTextReader@@@@SA?AV1 at XZ)//
> //1>C:\Users\fschiffers\Documents\Visual Studio
> 2008\Projects\EEGElectrodeDetector\Win32\Release\EEGElectrodeDetector.exe :
> fatal error LNK1120: 1 unresolved externals"/
>
> So I thought I included everything I need, but I don't know what to do
> anymore. By the way, I'm using vtk-5.10
>
> Do I need to link a special library? I link these:
>
> /QVTK.lib/
> /vtksys.lib/
> /vtkzlib.lib/
> /vtkVolumeRendering.lib/
> /vtkalglib.lib/
> /vtkCommon.lib/
> /vtkDICOMParser.lib/
> /vtktiff.lib/
> /vtkexpat.lib/
> /vtkFiltering.lib/
> /vtkftgl.lib/
> /vtkGenericFiltering.lib/
> /vtkGeovis.lib/
> /vtkGraphics.lib/
> /vtkhdf5.lib/
> /vtkhdf5_hl.lib/
> /vtkImaging.lib/
> /vtkIO.lib/
> /vtkjpeg.lib/
> /vtkmetaio.lib/
> /vtkNetCDF.lib/
> /vtkNetCDF_cxx.lib/
> /vtkpng.lib/
> /vtkproj4.lib/
> /vtkRendering.lib/
> /vtksqlite.lib/
> /vtkverdict.lib/
>
>
> Thank you for your help!
>
> Best regards,
> Florian
>
>
> _______________________________________________
> 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
--
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand
http://www.bioeng.auckland.ac.nz
g.bogle at auckland.ac.nz
(64-9) 373-7599 Ext. 87030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130919/ac35f557/attachment.htm>
More information about the vtkusers
mailing list