[vtkusers] Re: vtkProcrustesAlignmentFilter

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Sep 21 11:03:16 EDT 2004


Hi Jan,

Try:
procrustes Update

hth
Goodwin

"Jan Gregersen" <s973424 at student.dtu.dk> wrote in message
news:Pine.GSO.4.58.0409211025570.7763 at bohr.gbar.dtu.dk...
> Hi
>
> I'm having problems with the use of vtkProcrustesAlignmentFilter.
> How do I get the resulting points from the filter? When I use
> GetNumberOfPoints on the output it returns 0, so there is no output? The
> following tcl code illustrates my problem.
>
> package require vtk
>
> vtkPoints points1
>     points1 InsertPoint 0 0.0 0.0 0.0
>     points1 InsertPoint 1 0.0 1.0 0.0
>     points1 InsertPoint 2 1.0 0.0 0.0
>     points1 InsertPoint 3 1.0 1.0 0.0
>
> vtkPoints points2
>     points2 InsertPoint 0 1.0 0.2 0.0
>     points2 InsertPoint 1 1.0 0.6 0.0
>     points2 InsertPoint 2 1.0 0.4 0.0
>     points2 InsertPoint 3 0.2 1.0 0.0
>
> vtkPoints points3
>     points3 InsertPoint 0 0.0 0.2 0.0
>     points3 InsertPoint 1 0.0 0.6 0.0
>     points3 InsertPoint 2 0.0 0.4 0.0
>     points3 InsertPoint 3 0.6 1.0 0.0
>
> vtkPolyData tmp1
> vtkPolyData tmp2
> vtkPolyData tmp3
> tmp1 SetPoints points1
> tmp2 SetPoints points2
> tmp3 SetPoints points3
>
> vtkProcrustesAlignmentFilter procrustes
> procrustes SetNumberOfInputs 3
> procrustes SetInput 0 tmp1
> procrustes SetInput 1 tmp2
> procrustes SetInput 2 tmp3
>
> puts [[[procrustes GetOutput 0] GetPoints] GetNumberOfPoints]
>
>
> Thanks
> Jan
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>






More information about the vtkusers mailing list