[vtkusers] Selections

David Doria daviddoria+vtk at gmail.com
Mon Feb 1 20:33:14 EST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/7d353037/attachment.htm>


More information about the vtkusers mailing list