[vtkusers] How to get the input to a filter as algorithm output?
David Doria
daviddoria+vtk at gmail.com
Tue Dec 15 12:18:47 EST 2009
On Tue, Dec 15, 2009 at 12:13 PM, Jérôme <jerome.velut at gmail.com> wrote:
> Oops... it seems that I understand now some weird "bad extent" happening...
> I will keep this thread bookmarked, since it teaches a lot about VTK
> pipelining!
>
> This made me look at the documentation of ShallowCopy/DeepCopy. Finally, I
> found this class:
> http://www.vtk.org/doc/nightly/html/classvtkCell.html#a573202e8c9c3b5367b35fe7ad3fdfb43
>
> where it is said that ShallowCopy is for read-only copy... Is the code
> snippet right? ShallowCopying the output of the internal filter should then
> produce a read-only output for the main filter!
>
> Do I mistake if I rather propose:
> inputCopy->ShallowCopy(input);
> blend->AddInput(inputCopy);
> blend->Update();
> output->DeepCopy(blend->GetOutput());
>
> Jerome
This is probably not the best reference to keep bookmarked. I think
this needs to be clearly described on the wiki, along with some
examples. Any takers?
Thanks,
David
More information about the vtkusers
mailing list