[vtkusers] vtkCellPicker through transparent cells

xibi nyebit8 at hotmail.com
Thu Oct 4 07:50:15 EDT 2012


Hi all!

I'm using vtkCellPicker to throw a ray through a volume to set to 0 the
scalar values of all the cells that are intersected.

First, I set to 0 the scalar value of the first cell found by the Pick
function (given the mouse position). But then, when I try to get the next
cell with the same coordinates of the mouse position, the Pick function
gives me the same cell whose scalar value I have set to 0.

Instead, if I set to 0 the scalar value of the first cell found by the Pick
function, and the scalar value of its neighbours (26 neighbours), then there
is no problem, and I can get the next cell (the cell behind) with the same
mouse coordinates.

What am I missing? Is there some parameter to solve that?

I attach some pictures to show you the problem.

<http://vtk.1045678.n5.nabble.com/file/n5716440/wrong_operation.png> 

<http://vtk.1045678.n5.nabble.com/file/n5716440/right_opeation.png> 


Thank you all (and sorry for my English, it's not my natural language... ;))




--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkCellPicker-through-transparent-cells-tp5716440.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list