<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi , <br>
I will preface this by saying: I Haven't worked in windows or ms vc++
in long time.<br>
<br>
it really sounds like you may not be including a relavent vtk library
in your link command. I say this because none of the symbols for <font
size="2">vtkIteratorClosestPointTransform </font>seem to be found.
That said I don't know how vtk builds on windows. does everything get
put into one lib, or dll? In a linux build vtk puts various classes
into different .so files. so you just examine them to find which one
has the symbols you need.<font size="2"></font><br>
<br>
there used
to be a program named dumpbin that came with visual studio. You could
use it to display the symbols in lib, and dll files. you could use
"dumpbin" to see what functions are actually in the vtk library that
you are linking against. that might give you some ideas. By the way the
linux equivalent is "nm".<br>
<br>
Burlen<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:M.Salman@surrey.ac.uk">M.Salman@surrey.ac.uk</a> wrote:
<blockquote
cite="mid6A5F24CF338E23438ABBE3392E35AFBD181688@EVS-EC1-NODE1.surrey.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="MS Exchange Server version 6.5.7638.1">
<title>[vtkusers] vtkIterativeClosestPointTransform.h </title>
<!-- Converted from text/plain format -->
<p><font size="2">Hi All,<br>
Sorry for reposting the problem but I am really stuck with problem and
thought it might have been overlooked by many as I posted it late on
the weekend.<br>
<br>
<br>
I am trying to use vtkIterativeClosestPointTransform.h to re orientate
a translated 3D model given the original model.<br>
I use many functions of the class vtkIteratorClosestPointTransform, but
it gives the linker error only for New(),SetTarget() and SetSource().I
don't understand why linker has having problem with these functions
only.I am using visual studio 6 alongwith vtk4.4.<br>
<br>
It will be really helpful if you could give me any hint at all, it has
been taxing me for two days now.<br>
Alternatively,if somebody could send me working example program using
this class in C++,that may be helpful too.<br>
<br>
<br>
error listing and code are as follows:<br>
<br>
--------------------Configuration: basic - Win32
Debug--------------------<br>
Compiling...<br>
basic.cxx<br>
Linking...<br>
basic.obj : error LNK2001: unresolved external symbol "public: void
__thiscall vtkIterativeClosestPointTransform::SetTarget(class
vtkDataSet *)"
(?SetTarget@vtkIterativeClosestPointTransform@@QAEXPAVvtkDataSet@@@Z)<br>
basic.obj : error LNK2001: unresolved external symbol "public: void
__thiscall vtkIterativeClosestPointTransform::SetSource(class
vtkDataSet *)"
(?SetSource@vtkIterativeClosestPointTransform@@QAEXPAVvtkDataSet@@@Z)<br>
basic.obj : error LNK2001: unresolved external symbol "public: static
class vtkIterativeClosestPointTransform * __cdecl
vtkIterativeClosestPointTransform::New(void)"
(?New@vtkIterativeClosestPointTransform@@SAPAV1@XZ)<br>
Debug/basic.exe : fatal error LNK1120: 3 unresolved externals<br>
Error executing link.exe.<br>
<br>
ALL_BUILD - 4 error(s), 0 warning(s)<br>
<br>
<br>
<br>
<br>
#include "vtkIterativeClosestPointTransform.h"<br>
#include "vtkPolyData.h"<br>
#include "vtkXMLPolyDataReader.h"<br>
#include "vtkTransform.h"<br>
#include "vtkTransformPolyDataFilter.h"<br>
int main( int argc, char *argv[] )<br>
<br>
{<br>
//Reader for file 1<br>
vtkXMLPolyDataReader *reader1 = vtkXMLPolyDataReader::New();<br>
reader1->SetFileName("C:\\VtkProjects\\normal\\coneModel.vtp");<br>
vtkPolyData *data =reader1->GetOutput();<br>
<br>
/reader for file 2<br>
<br>
vtkXMLPolyDataReader *reader2 = vtkXMLPolyDataReader::New();<br>
reader2->SetFileName("C:\\VtkProjects\\normal\\coneTrans.vtp");<br>
vtkPolyData *dataChanged =reader2->GetOutput();<br>
<br>
//DEFINE TRANS FOR ORIENTATION<br>
<br>
<br>
vtkIterativeClosestPointTransform *
ReTransform=vtkIterativeClosestPointTransform::New();<br>
ReTransform->SetSource(reader2->GetOutput());<br>
ReTransform->SetTarget(reader1->GetOutput());<br>
ReTransform->SetCheckMeanDistance(1);<br>
ReTransform->SetMaximumMeanDistance(0.001);<br>
ReTransform->SetMaximumNumberOfIterations(3000);<br>
ReTransform->SetMaximumNumberOfLandmarks(50);<br>
//ReTransform->StartByMatchingCentroidsOff();<br>
ReTransform->Update();<br>
return(0);<br>
<br>
}<br>
<br>
<br>
Best Regards,<br>
<br>
M.Salman<br>
University of Surrey,U.K.<br>
<br>
<br>
</font>
</p>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
</body>
</html>