<div class="gmail_quote">On Fri, Oct 29, 2010 at 7:54 AM, Anders Wallin <span dir="ltr">&lt;<a href="mailto:anders.e.e.wallin@gmail.com">anders.e.e.wallin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi group,<br>
I have an algorithm that outputs triangles for an<br>
animation/simulation[1]. For each new time-step the number of<br>
triangles that change is a small number compared to the total number<br>
of triangles. I would therefore not like to create a new polydata for<br>
each time-step, but rather use the same polydata and delete some<br>
cells/triangles, and add some new cells/triangles at each time-step.<br>
<br>
I was looking here:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/DeletePoints" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/DeletePoints</a><br>
and here:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/Delete_cells" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/Delete_cells</a><br>
<br>
but both of these are in the &quot;broken&quot; category of examples.<br>
<br>
Any ideas for how to do this easily/efficiently ?<br>
To save memory I should probably delete old/unused points also, not only cells?<br>
<br>
thanks,<br>
Anders W<br>
[1] something like this: <a href="http://www.youtube.com/watch?v=17mpgQ4KVLg" target="_blank">http://www.youtube.com/watch?v=17mpgQ4KVLg</a></blockquote><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8">A few days ago Eric suggested using the ExtractSelection filter in &quot;INVERT&quot; mode to do this. That is, specify that you want to select/extract the cells that you want to delete, but then invert the selection so what is extracted is the remaining cells.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">These may help:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells</a></div>
<div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells"></a><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints</a><br clear="all">
<br></div><div class="gmail_quote"><div>David </div></div>