[vtkusers] Very important discovery\mistake !

bryan cole bryan.cole at teraview.co.uk
Tue Jun 3 14:14:43 EDT 2003


In the past, I've forced sections of pipeline to delete by individually
setting the inputs and output of *each* filter to NULL (i.e.
disconnecting them all), and removing and other python references to
them (no necessary for C++ presumably). 

As far as I know, a filter is only deleted if it has no connections to
any other filters/objects. I'm not sure if VTK is smart enough to detect
"isolated" sections of pipline for deletion.

Bryan

On Tue, 2003-06-03 at 18:11, Sebastien Auclair wrote:
> Am i not already doing that ?
> 
> ----- Original Message -----
> From: "Charl P. Botha" <c.p.botha at its.tudelft.nl>
> To: <vtkusers at public.kitware.com>
> Sent: Tuesday, June 03, 2003 12:13 PM
> Subject: Re: [vtkusers] Very important discovery\mistake !
> 
> 
> > On Tue, 2003-06-03 at 18:06, Sebastien Auclair wrote:
> > > m_polydata and m_normal are the values we want to keep but we must get
> rid
> > > of the filters and everything else !
> > > Again, what would the correct approach be to make sure none of those
> filters
> > > remains.
> >
> > DeepCopy m_polydata and m_normal out to newly allocated objects, then
> > Delete() the old ones.  This will allow the whole pipeline to
> > self-destruct.
> >
> > --
> > charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
-- 
Bryan Cole
Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom.
tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382




More information about the vtkusers mailing list