[vtkusers] GetOutput & GetOuputPort

bailleul jonathan jonathan.bailleul at utc.fr
Wed Mar 29 10:12:42 EST 2006


B.J.Prosser at cs.cardiff.ac.uk wrote:
> This may seem like a simple question but ive been reading through the vtk book
> and the online documentation but i dont really understand the difference
> between GetOutput and GetOutputPort. Specifically i am trying to use the ICP
> algorithm to match two data sets and i need to transform the second to get it
> closer.
> 
> im transforming an obj file data set with:
> 
> vtkTransformPolyDataFilter tpdf1
>    	tpdf1 SetInputConnection [obj1 GetOutputPort]
>    	tpdf1 SetTransform t1
> 
> then i need to use this transformed data in the ICP algorithm which i need to
> use:
>    	icp1 SetTarger [somedata GetOutput]
> 
> but when i use
>    	icp1 SetTarget [tpdf1 GetOutput]
> 
> i am told that 'Can't execute with NULL or empty target' but i dont understand
> why it would be null ?
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


my two euro-cents:

Maybe I'm missing the point, but it seems that old versions of tcl 
examples tend to use SetInputConnection instead of SetInput, and 
GetOutputPort instead of GetOutput. Many errors can be avoided in 
systematically converting these names (sed, search-replace, etc)...


Best regards,

-- 
---------------------------------------
Jonathan BAILLEUL, ATER
Dept. Génie Biomédical - UTC Compiègne
Doctorant au GREYC Image - ENSICAEN
http://www.greyc.ensicaen.fr/~bailleul/



More information about the vtkusers mailing list