[vtkusers] VTK Area Picking

David E DeMarle dave.demarle at kitware.com
Thu Mar 4 09:17:16 EST 2010


AreaPicker will only identify whole actors in the rubber band.

To get down to the nodes/elements that are selected within an actor,
you need to create either a frustum or a surface points/cells ids
selection, and then pass that selection and the data into the
vtkExtractSelection filter. From that you could use the glyph filter
to create the spheres.

See VTK/Rendering/Testing/Cxx/TestAreaSelections.cxx and
http://www.vtk.org/Wiki/VTK/Examples/HighlightSelectedPoints for
starters.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



On Tue, Feb 23, 2010 at 7:48 PM, Zabin Farishta
<zfar004 at aucklanduni.ac.nz> wrote:
> Hey Experts!
>
> I am trying to put select elements underneath area picked by vtkareapicker.
> So far, I have no lead on how to add spheres on all nodes within the
> selected regions... i dont know what property i need to look at to figure
> out what nodes fall in the selected region.
>
>
> Any help would be much appreciated
>
>
> Cheers
> Zabin
>
> _______________________________________________
> 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