Hello,<br><br>I'm using vtkSelectVisiblePoints inside a callback
function (actually I'd even prefer to use it outside a callback but at
the moment that's the only way I get it to work) to get a list of all
the visible non-occluded points. <br>
The problem is that I need to interact with the render window once in
order to make it work correctly. If I just render my view and try to get
all visible points I get a list of ALL points inside the frustum (i.e.
it ignores occlusion even though the zbuffer shows the correct values
when reading it right before the vtkSelectVisiblePoints update) but once
I do any user interaction such as a mouse click inside the window it
fixes the problem and vtkSelectVisiblePoints returns the correct number
of visible points.<br>
<br>Can anyone tell me what I might be doing wrong? I'm using the code as given in the example at <a href="http://www.cmake.org/Wiki/VTK/Examples/Cxx/PolyData/SelectVisiblePoints" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Cxx/PolyData/SelectVisiblePoints</a>
just that I'm listening to a reoccurring timer instead of a mouse click
(and ultimately I'd like to run the code outside a callback and simply
render N different camera positions and get the visible points using
those camera settings).<br>
<br>Thanks,<br>Thomas