[vtkusers] Need to pick a cell and it's neighbors

tasnim hanene-jeder at hotmail.fr
Thu Aug 2 12:27:22 EDT 2012


David Doria-2-3 wrote
> 
> On Thu, Aug 2, 2012 at 11:45 AM, tasnim <hanene-jeder@> wrote:
> You just have to use a normal vtkCellPicker to get the cell ID of the
> cell you want to query for neighbors. That is, change:
> 
>  vtkIdType cellId = 0;
> 
> in the example to the result of a vtkCellPicker.
> 
> David
> 
Thanks David.
Yes, I had also the same idea, but the problem is that : i couldn't change
the cellId to the result of the vtkCellPicker. In the example, the cellId is
declared in the main function, but i have to get it in the :
virtual void OnLeftButtonDown().




--
View this message in context: http://vtk.1045678.n5.nabble.com/Need-to-pick-a-cell-and-its-neighbors-tp5715057p5715059.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list