<br><div class="gmail_quote">On Mon, Feb 1, 2010 at 11:49 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></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 <<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>> wrote:<br>
> I am trying to demonstrate vtkSelectionSource and vtkExtractSelection:<br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection</a><br>
> The example is setup to create 50 random points and extract 10 of them (IDs<br>
> 10 through 20, so maybe 11?). Is this the right idea? Create a<br>
> selectionSource, tell it which things you want to select, then extract the<br>
> selection?<br>
> The output of the extractSelection filter is NULL, so clearly it is not<br>
> exactly correct :)<br>
> Also, the output of the ExtractSelection is a vtkDataObject, so I tried to<br>
> cast it as a vtkDataSet to get back to a sane data type - is this a<br>
> reasonable approach? 'obj' is null for now so I can't tell if the cast will<br>
> work.<br>
> Any suggestions?<br>
> Thanks,<br>
><br>
> 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'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>