vtkExtractSelection will only work on the first node in the selection. So if you have multiple selection nodes, to extract a different frustum you will need to replace the first node with<div><br></div><div>sel->RemoveAllNodes();</div>
<div>sel->AddNode(newNode);</div><div><br></div><div>Multiple selection nodes are used by the filter to specify a different selection for each block on a multiblock dataset. vtkSelection does not support the notion of "active" and "inactive" nodes.</div>
<div><br></div><div>Jeff</div><div><br><div class="gmail_quote">On Mon, Jun 8, 2009 at 9:10 AM, Wagner Sales <span dir="ltr"><<a href="mailto:wsales@gmail.com">wsales@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I'm doing a very common task: extracting multiple frustum selections<br>
from a vtkImageData.<br>
Then:<br>
1 - I create a vtkSelection<br>
2 - I create multiple nodes vtkSelectionNode, each one with a desired<br>
frustum information<br>
3 - Then I need to use vtkExtractSelection to extract the data.<br>
The question are: since I set the vtkSelection to vtkExtractSelection<br>
( not the vtkSelectionNode, that's are various ) and in vtkSelection I<br>
don't have a method like "set current node", which node will be<br>
extracted or how to extract a node's selection?<br>
<br>
Regards,<br>
<br>
Wagner Sales<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jeff Baumes, Ph.D.<br>R&D Engineer, Kitware Inc.<br>(518) 881-4932<br><a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a><br>
</div>