[vtkusers] Selections

Bill Lorensen bill.lorensen at gmail.com
Mon Feb 1 23:49:57 EST 2010


Have you looked for a test that uses vtkExtractSelection? I found one
in VTK/Graphics/Testing/Cxx/TestExtraction.cxx. It might help. I have
not looked at your example or the test.

On Mon, Feb 1, 2010 at 8:33 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> I am trying to demonstrate vtkSelectionSource and vtkExtractSelection:
> http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection
> The example is setup to create 50 random points and extract 10 of them (IDs
> 10 through 20, so maybe 11?). Is this the right idea? Create a
> selectionSource, tell it which things you want to select, then extract the
> selection?
> The output of the extractSelection filter is NULL, so clearly it is not
> exactly correct :)
> Also, the output of the ExtractSelection is a vtkDataObject, so I tried to
> cast it as a vtkDataSet to get back to a sane data type - is this a
> reasonable approach? 'obj' is null for now so I can't tell if the cast will
> work.
> Any suggestions?
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list