[vtkusers] vtkCellPicker

David J. Netherway djn at elan.mad.adelaide.edu.au
Tue Aug 15 06:39:54 EDT 2000


Here is a crude example of a problem with using the cellPicker and
positioning actors using SetPosition.

The work around by Patrick de Koning works, I have yet to download and try
the latest version of vtk as suggested by Charles Law.

Thanks to all respondents, David


Will Schroeder wrote:

> Hi David-
>
> This should work, can you send me an example?
>
> Will
>
> At 08:37 PM 8/14/00 +0930, you wrote:
> >Hello,
> >
> >I am using a daily vtk from August 7, 2000 on winNT.
> >
> > From a single cube source and a single mapper I generate multiple actors
> >at different positions.
> >
> >I use SetPosition on each actor to position each of them.
> >
> >They appear where I expect them.
> >
> >Using a cellPicker I can select them and have code to move them around,
> >again using SetPosition.
> >
> >They move to where I put them using the mouse.
> >
> >At this stage they cannot be picked unless I click the mouse at their
> >original position.
> >
> >Does anyone know of problems relating to cellPicking and repeated use of
> >the SetPosition method?
> >
> >I use
> >set assembly [[[cellPicker Getpath] GetFirstNode] GetProp]
> >to get the actor.
> >
> >This is successful for repeated pickings if the actor stays at its first
> >location.
> >
> >Thanks, David
> >
> >
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list