<br><div class="gmail_quote">On Mon, Feb 1, 2010 at 11:49 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@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;">
Have you looked for a test that uses vtkExtractSelection? I found one<br>
in VTK/Graphics/Testing/Cxx/TestExtraction.cxx. It might help. I have<br>
not looked at your example or the test.<br>
<div><div></div><div class="h5"><br>
On Mon, Feb 1, 2010 at 8:33 PM, David Doria &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt; wrote:<br>
&gt; I am trying to demonstrate vtkSelectionSource and vtkExtractSelection:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection</a><br>
&gt; The example is setup to create 50 random points and extract 10 of them (IDs<br>
&gt; 10 through 20, so maybe 11?). Is this the right idea? Create a<br>
&gt; selectionSource, tell it which things you want to select, then extract the<br>
&gt; selection?<br>
&gt; The output of the extractSelection filter is NULL, so clearly it is not<br>
&gt; exactly correct :)<br>
&gt; Also, the output of the ExtractSelection is a vtkDataObject, so I tried to<br>
&gt; cast it as a vtkDataSet to get back to a sane data type - is this a<br>
&gt; reasonable approach? &#39;obj&#39; is null for now so I can&#39;t tell if the cast will<br>
&gt; work.<br>
&gt; Any suggestions?<br>
&gt; Thanks,<br>
&gt;<br>
&gt; David<br>
</div><div class="h5"><br></div></div></blockquote><div class="gmail_quote"><br></div><div class="gmail_quote">That helped catch a bug with the ExtractSelection filter, but I believe the problem lies in the SelectionSource. There doesn&#39;t seem to be any tests that use a vtkSelectionSource (this is bad, right!?).</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Here is the latest version:</div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection">http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote">It exits successfully, but there are 0 points in the output.</div><br clear="all">Thanks,<br><br><div>David</div></div>