[vtkusers] Call for Examples!

Kenneth Porter shiva at sewingwitch.com
Mon Jan 4 14:10:46 EST 2010


--On Monday, January 04, 2010 8:52 AM -0500 David Doria 
<daviddoria+vtk at gmail.com> wrote:

> http://www.cmake.org/Wiki/VTK/Examples#Broken.2FMissing_Examples_.28Pleas
> e_write.2Ffix_me.21.29

I took a look at this example and it looks like it's returning a pointer to 
a deleted object:

<http://www.cmake.org/Wiki/Create_a_surface_from_Unorganized_Points>

The smart pointer goes out of scope in readPoints() and deletes the object 
before main() can use it.

However, I'm new to VTK and its garbage collector, so perhaps I'm 
misinterpreting the code. Can someone confirm my analysis?





More information about the vtkusers mailing list