<br><br><blockquote>Hi,<br><br>I too think the problem lies and it is very serious.. I wrote a filter for that.. But dont know.. Points and cells are getting deleted but not reflecting back in the render window..<br><br>Let me get myself cleared,<br><br>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)<br>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..??<br>(I feel, undo option is upto the user requirement. As far as filter is concerned, no need to keep backup)<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br>---------- Original message ---------<br>From:David Doria< daviddoria+vtk@gmail.com ><br>Date: 19 Apr 10 23:31:09<br>Subject: Re: [vtkusers] Deleting cells from an unstructured grid..??<br>To: Rakesh Patil <rakeshthp@in.com><br><br></rakeshthp@in.com><div class="gmail_quote">On Mon, Apr 19, 2010
at 1:52 PM, Rakesh Patil <span dir="ltr"><<a target=\"_blank\" target="\"_blank\"" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br>
<font color="#000000"></font><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote"><font color="#000000">Hello users,<br><br>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..<br>
<br>Thanks<br><br>Regards<br>Rakesh Patil<br></font></blockquote>
<div>The problem lies in the topology (cells) defined on the unstructured grid. If you delete some points (read re-add 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 non-contiguous blocks, you have a lot of things to keep track of.</div>
<div><br>I definitely agree that we should build this sort of "DeletePoints" filter.</div>
<div><br clear="all">Thanks,<br><br>David</div></div>
</blockquote>