https://public.kitware.com/Wiki/index.php?title=VTK/VTK_6_Migration/Changes_to_vtkProcrustesAlignmentFilter&feed=atom&action=historyVTK/VTK 6 Migration/Changes to vtkProcrustesAlignmentFilter - Revision history2024-03-29T13:40:56ZRevision history for this page on the wikiMediaWiki 1.38.6https://public.kitware.com/Wiki/index.php?title=VTK/VTK_6_Migration/Changes_to_vtkProcrustesAlignmentFilter&diff=46490&oldid=prevBerk: Created page with "= Changes to vtkProcrustesAlignmentFilter = In VTK 6, we changed or removed a few algorithms that previously produced variable number of outputs, which is not supported in VTK 6..."2012-04-06T19:37:21Z<p>Created page with "= Changes to vtkProcrustesAlignmentFilter = In VTK 6, we changed or removed a few algorithms that previously produced variable number of outputs, which is not supported in VTK 6..."</p>
<p><b>New page</b></p><div>= Changes to vtkProcrustesAlignmentFilter =<br />
<br />
In VTK 6, we changed or removed a few algorithms that previously produced variable number of outputs, which is not supported in VTK 6. Such algorithms need to produce vtkMultiBlockDataSet instead. As part of this change, we change vtkProcrustesAlignmentFilter to take a multi-block dataset as input and produce a multi-block dataset as output.<br />
<br />
== Example 1 ==<br />
<br />
Replace:<br />
<br />
<source lang="tcl"><br />
vtkProcrustesAlignmentFilter procrustes<br />
procrustes SetNumberOfInputs 3<br />
procrustes SetInput 0 [sphere GetOutput]<br />
procrustes SetInput 1 [transformer1 GetOutput]<br />
procrustes SetInput 2 [transformer2 GetOutput]<br />
[procrustes GetLandmarkTransform] SetModeToRigidBody<br />
<br />
vtkPolyDataMapper map2a<br />
map2a SetInput [procrustes GetOutput 0]<br />
</source><br />
<br />
with:<br />
<br />
<source lang="tcl"><br />
vtkMultiBlockDataGroupFilter group<br />
group AddInputConnection [sphere GetOutputPort]<br />
group AddInputConnection [transformer1 GetOutputPort]<br />
group AddInputConnection [transformer2 GetOutputPort]<br />
<br />
vtkProcrustesAlignmentFilter procrustes<br />
procrustes SetInputConnection [group GetOutputPort]<br />
[procrustes GetLandmarkTransform] SetModeToRigidBody<br />
procrustes Update<br />
<br />
vtkPolyDataMapper map2a<br />
map2a SetInputData [[procrustes GetOutput] GetBlock 0]<br />
</source><br />
<br />
Note the use of [[procustes GetOutput] GetBlock 0]. It is also possible to create a pipeline that works on one block (or more) by using the composite data pipeline and vtkExtractBlock filter.</div>Berk