passing data unchanged through a filter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

passing data unchanged through a filter

John Platt-3

Hi all,

 

Is there a preferred method of passing a dataset through a filter with no changes? I have seen

 

    output->ShallowCopy( input );

 

and

 

    output->CopyStructure( input );

    output->GetPointData()->PassData(input->GetPointData());

    output->GetCellData()->PassData(input->GetCellData());

 

Any enlightenment would be welcome.

 

John


_______________________________________________
vtk-developers mailing list
[hidden email]
http://www.vtk.org/mailman/listinfo/vtk-developers