[vtkusers] Re: is VTKDelete() intended for public use?
    David Gobbi 
    dgobbi at atamai.com
       
    Sat Oct  8 12:21:38 EDT 2005
    
    
  
--- "Steve M. Robbins" <steven.robbins at videotron.ca> wrote:
> Hello David,
> 
> On Fri, Oct 07, 2005 at 10:48:17AM -0400, David Gobbi wrote:
>  
> > I think that you are taking the wrong approach.  You don't
> > actually need to delete any VTK objects, you just need to
> > free the memory that they are using to store the image array.
> > 
> > Each data object has a "ReleaseData()" method that will
> > allegedly do the trick.
> 
> Thanks -- that sounds like just the ticket.  I presume something
> similar exists for non-data objects.
Yes, mappers and textures have ReleaseGraphicsResources().  It should
be a safe way of freeing video memory consumed by those classes.
 - DG
    
    
More information about the vtkusers
mailing list