<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi all vtk users.</DIV>
<DIV>I have a code sample whish is supposed to do the registration of 2 objects and display the result.</DIV>
<DIV>When i run it, i have only the second object chosen which is displayed..</DIV>
<DIV>Can you tell me where exactly is the default in this code?</DIV>
<DIV>Thank you sooo much</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkXMLPolyDataReader *object1 = vtkXMLPolyDataReader::New();<BR>object1-&gt;SetFileName(File1);<BR>object1-&gt;Update();<BR>&nbsp;<BR>vtkXMLPolyDataReader *object2 = vtkXMLPolyDataReader::New();<BR>object2-&gt;SetFileName(File2);<BR>objetc2-&gt;Update();<BR>&nbsp;<BR>//Registration<BR>vtkIterativeClosestPointTransform *reca = vtkIterativeClosestPointTransform::New();<BR>reca-&gt;SetSource(object1-&gt;GetOutput());<BR>reca-&gt;SetTarget(object2-&gt;GetOutput());<BR>reca-&gt;SetMaximumNumberOfIterations(50);<BR>&nbsp;<BR>vtkTransformPolyDataFilter *treca = vtkTransformPolyDataFilter ::New();<BR>treca-&gt;SetInput(object1-&gt;GetOutput());<BR>treca-&gt;SetTransform(reca);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>