[vtkusers] Highlighted Points: why do they disappear on reselection

David Doria daviddoria at gmail.com
Mon Jul 2 10:52:55 EDT 2012


On Mon, Jul 2, 2012 at 10:46 AM, Dieter Menne
<dieter.menne at menne-biomed.de> wrote:
> I have a problem understanding the working of:
>
> http://www.cmake.org/Wiki/VTK/Examples/Cxx/Picking/HighlightSelectedPoints
>
> When I have selected a region, and then select a different one, the
> highlighting of the first is lost. I do not understand why this is the case.
>
> And how would I proceed is I would like to Add the second selection to the
> first one? The idea is to have something like a frustrum brush, to select
> irregular shapes that can be deleted.
>
> Dieter
>

Instead of this:

vtkPolyData* selected = glyphFilter->GetOutput();

you can use a vtkAppendPolyData filter
(http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/CombinePolydata) to
combine the new selection with the old selection.

David

David



More information about the vtkusers mailing list