Using vtkVolumePicker with vtkMultiVolume #762
Unanswered
AndiSchratti
asked this question in
Trame/VTK
Replies: 1 comment 1 reply
-
|
If you create a plain VTK/Python example (i.e. without Trame) do you get the same issue/behavior? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After spending some time trying to achieve this, I believe it might not even be possible.
The goal is to detect a hit on the volume using vtkVolumePicker. This works perfectly fine with a single volume. However, when used in combination with a vtkMultiVolume, I often cannot register a proper hit - or worse, the picker reports a hit at a location far away from the actual volume, where no object exists.
Below is the part where I track the mouse coordinates and print on hit detected:
My render pipeline is a bit more complicated, so here is the part I believe is relevant for the problem.
If I had to guess, I’d say the issue comes from the MultiVolume, although I couldn’t find what exactly is causing it while debugging.
Beta Was this translation helpful? Give feedback.
All reactions