[Paraview] Using VTK Filters with Programmable Filter

livia.barazzetti at istb.unibe.ch livia.barazzetti at istb.unibe.ch
Tue Apr 7 03:47:09 EDT 2015


Hi,
I have a question about the use of vtk filter. At page 91 of the paraview manual included in the binaries download,  it is suggested to make a copy of the input (
input_copy = inputs[0].NewInstance()
input_copy.UnRegister(None)
input_copy.ShallowCopy(inputs[0].VTKObject) ) , but the reference is to the previous  version of VTK. Does this still hold for VTK 6?
In the paraview guide available for download  under "documentation", this issue is not mentioned (but the guide is also shorter). I have been using the filter without making copy of the input and I haven't the impression of memory leaks in my code
Livia


Livia Barazzetti
Ph.D. Student - Medical Image Analysis
Institute for Surgical Technology and Biomechanics
University of Bern
Stauffacherstrasse 78
CH-3014 Bern
Tel +41 31 631 59 48
http://www.istb.unibe.ch<http://www.istb.unibe.ch/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150407/7408919c/attachment.html>


More information about the ParaView mailing list