[vtkusers] Re: Delete Cells from vtkPolyData

Goodwin Lawlor goodwin.lawlor at ucd.ie
Fri Mar 2 08:54:48 EST 2007


Mike Jackson wrote:
> And does the same go for inserting cells? I am trying to "split" a 
> manifold edge at its points which means I need to add a new point and 
> then change the cell so that it references this new point. Do I have to 
> rebuild the links each time? I seem to be hitting a point where after I 
> have added some new points, when I attempt to use the 
> GetEdgeNeighbors(...) the method fails with a "Exec_bad_access" error. 
> Which to me seems like I am walking of the end of an array or maybe 
> something else that did not get updated.
> 
> Thanks for any help from anyone.
> --Mike Jackson   Senior Research Engineer
> Innovative Management & Technology Services

Mike,

The best example code of what you want to do is the old vtkDecimate 
class. Its up in the attic here:

http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Patented/Attic/vtkDecimate.cxx?content-type=text%2Fplain

Goodwin




More information about the vtkusers mailing list