[vtkusers] vtkProbeFilter.Update()

Mathieu Malaterre mmalat at irus.rri.ca
Tue Jun 18 22:57:44 EDT 2002


Hi all,
  I think I didn't understand the vtk pipeline. I thought that the
'Update' method would call the Execute method again (providing the
modified time was changed).
So here is two scripts, the first one is the one that work but not
really -memory- efficient:

//first one:
for k in range(0, 10):
    probe = vtkProbeFilter()
    probe.SetSource(reader.GetOutput())
    probe.SetInput(mesh)
    probe.Update()
    //do some change to 'mesh' with the result of probeFilter
   del probe


//second one:
probe = vtkProbeFilter()
probe.SetSource(reader.GetOutput())
for k in range(0, 10):
    probe.SetInput(mesh)
    probe.Update()
    //do some change to 'mesh' with the result of probeFilter


Does anyone knows what I lack ?
Thanks a lot.
Mathieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmalat.vcf
Type: text/x-vcard
Size: 392 bytes
Desc: Card for Mathieu Malaterre
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020618/9634e095/attachment.vcf>


More information about the vtkusers mailing list