<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I want to read an .xyz File with normals into vtkPolyData.<br>
<br>
I found this tutorial in the examples: <a
class="moz-txt-link-freetext"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile</a><br>
<br>
So I tried to implement the DelimitedTextReader. But it doesn't
work.<br>
I included all header files, like it was requested:<br>
<blockquote>
<pre class="de1"><i><span class="co2">#include <vtkSmartPointer.h></span></i><i>
</i><i><span class="co2">#include <vtkProperty.h></span></i><i>
</i><i><span class="co2">#include <vtkPolyDataMapper.h></span></i><i>
</i><i><span class="co2">#include <vtkActor.h></span></i><i>
</i><i><span class="co2">#include <vtkDelimitedTextReader.h></span></i><i>
</i><i><span class="co2">#include <vtkDoubleArray.h></span></i><i>
</i><i><span class="co2">#include <vtkTable.h></span></i><i>
</i><i><span class="co2">#include <vtkPointData.h></span></i><i>
</i><i><span class="co2">#include <vtkRenderWindow.h></span></i><i>
</i><i><span class="co2">#include <vtkRenderWindowInteractor.h></span></i><i>
</i><i><span class="co2">#include <vtkRenderer.h></span></i><i>
</i><i><span class="co2">#include <vtkVertexGlyphFilter.h></span></i></pre>
</blockquote>
<br>
After that I tried to initialize the <vtkDelimtedTextReader>
with this line:<br>
<blockquote><i> vtkSmartPointer<vtkDelimitedTextReader> reader
=</i><br>
<i> vtkSmartPointer<vtkDelimitedTextReader>::New();</i><br>
<br>
</blockquote>
Unfortunately I get an error message, during the compilation (Using
Visual Studio 2008):<br>
<i><br>
</i><i>">Linking...</i><i><br>
</i><i>1>ElectrodeDetectorPlugin.obj : error LNK2019: unresolved
external symbol "__declspec(dllimport) <br>
public: static class vtkDelimitedTextReader * __cdecl
vtkDelimitedTextReader::New(void)"
(__imp_?New@vtkDelimitedTextReader@@SAPAV1@XZ) <br>
referenced in function "public: static class
vtkSmartPointer<class vtkDelimitedTextReader> __cdecl
vtkSmartPointer<class vtkDelimitedTextReader>::New(void)"
(?New@?$vtkSmartPointer@VvtkDelimitedTextReader@@@@SA?AV1@XZ)</i><i><br>
</i><i>1>C:\Users\fschiffers\Documents\Visual Studio
2008\Projects\EEGElectrodeDetector\Win32\Release\EEGElectrodeDetector.exe
:<br>
fatal error LNK1120: 1 unresolved externals"</i><br>
<br>
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<br>
<br>
Do I need to link a special library? I link these:<br>
<blockquote><i>QVTK.lib</i><br>
<i>vtksys.lib</i><br>
<i>vtkzlib.lib</i><br>
<i>vtkVolumeRendering.lib</i><br>
<i>vtkalglib.lib</i><br>
<i>vtkCommon.lib</i><br>
<i>vtkDICOMParser.lib</i><br>
<i>vtktiff.lib</i><br>
<i>vtkexpat.lib</i><br>
<i>vtkFiltering.lib</i><br>
<i>vtkftgl.lib</i><br>
<i>vtkGenericFiltering.lib</i><br>
<i>vtkGeovis.lib</i><br>
<i>vtkGraphics.lib</i><br>
<i>vtkhdf5.lib</i><br>
<i>vtkhdf5_hl.lib</i><br>
<i>vtkImaging.lib</i><br>
<i>vtkIO.lib</i><br>
<i>vtkjpeg.lib</i><br>
<i>vtkmetaio.lib</i><br>
<i>vtkNetCDF.lib</i><br>
<i>vtkNetCDF_cxx.lib</i><br>
<i>vtkpng.lib</i><br>
<i>vtkproj4.lib</i><br>
<i>vtkRendering.lib</i><br>
<i>vtksqlite.lib</i><br>
<i>vtkverdict.lib</i><br>
</blockquote>
<br>
Thank you for your help!<br>
<br>
Best regards,<br>
Florian
</body>
</html>