<div dir="ltr">In years since vtkExtractSelectedPolyDataIds was made, vtkSelection was updated and generalized, including the addition of the inverse flag. It looks like supporting that flag was not back-ported to this filter. There is now the more general vtkExtractSelectedIds, and the even more general vtkExtractSelection, which should work on arbitrary selection types and should support inverse.<div><br></div><div>I've added <a href="https://gitlab.kitware.com/vtk/vtk/issues/16976">https://gitlab.kitware.com/vtk/vtk/issues/16976</a> to capture your issue.<br><div><br></div><div>Jeff</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Feb 2, 2017 at 12:00 AM BBerco <<a href="mailto:bebe0705@colorado.edu">bebe0705@colorado.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br class="gmail_msg">
I am trying to obtain a selected subset A from a polydata C as well as the<br class="gmail_msg">
unselected subset B (so that A U B = C) from a rubber band selection, in the<br class="gmail_msg">
form of two polydatas.<br class="gmail_msg">
<br class="gmail_msg">
If I'm able to obtain A using vtkExtractSelectedPolyDataIds, I am unable to<br class="gmail_msg">
invert the selection to get B.<br class="gmail_msg">
The attached self-sufficient code demonstrates the issue. Although I am<br class="gmail_msg">
adding the property INVERSE = 1 to the selection node, the output of<br class="gmail_msg">
vtkExtractSelectedPolyDataIds has a number of cells that remains unchanged.<br class="gmail_msg">
<br class="gmail_msg">
Any thoughts?<br class="gmail_msg">
<br class="gmail_msg">
Thanks,<br class="gmail_msg">
Ben<br class="gmail_msg">
<br class="gmail_msg">
CellPicking.cxx<br class="gmail_msg">
<<a href="http://vtk.1045678.n5.nabble.com/file/n5742021/CellPicking.cxx" rel="noreferrer" class="gmail_msg" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5742021/CellPicking.cxx</a>><br class="gmail_msg">
output.txt <<a href="http://vtk.1045678.n5.nabble.com/file/n5742021/output.txt" rel="noreferrer" class="gmail_msg" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5742021/output.txt</a>><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkExtractSelectedPolyDataIds-and-inverse-selection-bug-tp5742021.html" rel="noreferrer" class="gmail_msg" target="_blank">http://vtk.1045678.n5.nabble.com/vtkExtractSelectedPolyDataIds-and-inverse-selection-bug-tp5742021.html</a><br class="gmail_msg">
Sent from the VTK - Users mailing list archive at Nabble.com.<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Powered by <a href="http://www.kitware.com" rel="noreferrer" class="gmail_msg" target="_blank">www.kitware.com</a><br class="gmail_msg">
<br class="gmail_msg">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" class="gmail_msg" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="gmail_msg">
<br class="gmail_msg">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" class="gmail_msg" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="gmail_msg">
<br class="gmail_msg">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" class="gmail_msg" target="_blank">http://markmail.org/search/?q=vtkusers</a><br class="gmail_msg">
<br class="gmail_msg">
Follow this link to subscribe/unsubscribe:<br class="gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="gmail_msg">
</blockquote></div>