<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> </DIV>
<DIV> </DIV>
<DIV>vtkXMLPolyDataReader *object1 = vtkXMLPolyDataReader::New();<BR>object1->SetFileName(File1);<BR>object1->Update();<BR> <BR>vtkXMLPolyDataReader *object2 = vtkXMLPolyDataReader::New();<BR>object2->SetFileName(File2);<BR>objetc2->Update();<BR> <BR>//Registration<BR>vtkIterativeClosestPointTransform *reca = vtkIterativeClosestPointTransform::New();<BR>reca->SetSource(object1->GetOutput());<BR>reca->SetTarget(object2->GetOutput());<BR>reca->SetMaximumNumberOfIterations(50);<BR> <BR>vtkTransformPolyDataFilter *treca = vtkTransformPolyDataFilter ::New();<BR>treca->SetInput(object1->GetOutput());<BR>treca->SetTransform(reca);</DIV>
<DIV> </DIV>
<DIV> </DIV></td></tr></table><br>