[vtkusers] Example of setting up global ids and retrieving selection in globalid?

Jesse Kinross-Smith Jesse.Kinross-Smith at bentley.com
Tue Feb 20 22:21:31 EST 2018


Hi all,

I'm pretty new to VTK, got some model rendering going on trying to get selection from the picker that gives us something meaningful.
All of our objects have internal IDs and we want to store that somehow - and (correct me if I'm wrong here) - I understand the best way to do this is to use global ids and set our own id for each object we add to the renderer, then get that back from the picker.

I've been struggling to get this to work though - so really wondering if anyone has an example they can point me to or code snippets of the key parts so I can get this working.

I've read through a number of posts on here from the past where GlobalIds have been mentioned - but never seen any snippets or examples.

Regards,

Jesse
--
Jesse Kinross-Smith
Senior Software Engineer - BSW
Bentley Systems, Fremantle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180221/327db436/attachment.html>


More information about the vtkusers mailing list