[vtk-developers] New class: vtkGraphLargestConnectedComponent

Jeff Baumes jeff.baumes at kitware.com
Mon May 24 08:38:24 EDT 2010


> You said
>
> "Similarly, you should ShallowCopy() the output of
> the last filter into the real filter output object."
>
> Is that not what this is doing:?
> output->ShallowCopy(extractSelectedGraph->GetOutput());
>
> Do I have to, instead, do :
>
> vtkSmartPointer<vtkMutableUndirectedGraph> tempOutput =
>  vtkSmartPointer<vtkMutableUndirectedGraph>::New();
> tempOutput->ShallowCopy(extractSelectedGraph->GetOutput());
> output->ShallowCopy(tempOutput);

No, you had it right. I was just completing the thought in the email
to fully explain to others how to use an internal pipeline in an
algorithm.

Jeff



More information about the vtk-developers mailing list