<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I don't know why your example doesn't work, but if I was doing it I'd be tempted to create a selection containing the cell(s) I want to remove, then invert the selection and use vtkExtractSelection to "remove" the cells (really return everything except the unwanted cells).<div><br></div><div>-Eric</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 22, 2010, at 1:26 PM, David Doria wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Fri, Oct 22, 2010 at 1:19 PM, Artem Babayan <span dir="ltr">&lt;<a href="mailto:artem.paraview@googlemail.com">artem.paraview@googlemail.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,<br>
<br>
Is it possible to remove a single cell (or a group of cells) from<br>
vtkUnstructuredGrid ?<br>
<br>
Best wishes<br>
Artem<br></blockquote><div><br></div><div>This was my best attempt, but it doesn't work:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/DeleteCell">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/DeleteCell</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Hopefully someone else can fix that example for you.</div><br><div>David</div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>