[vtkusers] vtkCellPicker
David J. Netherway
djn at elan.mad.adelaide.edu.au
Tue Aug 15 06:45:56 EDT 2000
This time I have actually added the attachment.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cellPickerTest.tcl
Type: application/x-tcl
Size: 4473 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20000815/be245b08/attachment.tcl>
More information about the vtkusers
mailing list