[vtkusers] Deleting cells from an unstructured grid..??
Rakesh Patil
rakeshthp at in.com
Mon Apr 19 14:20:06 EDT 2010
Hi,I too think the problem lies and it is very serious.. I wrote a filter for that.. But dont know.. Points and cells aregetting deleted but not reflecting back in the render window..Let me get myself cleared,1) When I delete a cell, is it necessary that the points in that cell also should get deleted..?? (I think no need to delete points)2) If i delete a point/cell, should it be kept in a stack or a list as a backup for undoing option, or directly remove from the grid..??(I feel, undo option is upto the user requirement. As far as filter is concerned, no need to keep backup)ThanksRegardsRakesh Patil Original message From:David Doria< daviddoria+vtk at gmail.com >Date: 19 Apr 10 23:31:09Subject:Re: [vtkusers] Deleting cells from an unstructured grid..??To: Rakesh Patil On Mon, Apr 19, 2010 at 1:52 PM, Rakesh Patilwrote: Hello users,Is there a possible way to implement the deletion of a cell using vtkIdFilter and vtkClipDataSet..?? I was just thinking whether it can be done as i
need it very badly.. ThanksRegardsRakesh Patil The problem lies in the topology (cells) defined on the unstructured grid. If you delete some points (read readd all of the points except the ones you don't want) , then the IDs of the points that the cells use will now be incorrect. You'd also have to loop through all of the cells and adjust their point ids, and this doesn't seem trivial because if the points are deleted in noncontiguous blocks, you have a lot of things to keep track of.I definitely agree that we should build this sort of "DeletePoints" filter. Thanks,David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100419/6b9b1847/attachment.htm>
More information about the vtkusers
mailing list