[vtkusers] Need to pick a cell and it's neighbors
David Doria
daviddoria at gmail.com
Thu Aug 2 12:31:48 EDT 2012
On Thu, Aug 2, 2012 at 12:27 PM, tasnim <hanene-jeder at hotmail.fr> wrote:
>
> 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
You'll have to do this neighbor search in the OnLeftButtonDown() then,
or otherwise put the neighbor search somewhere where it has been
passed or has access to the cell you want to query.
David
More information about the vtkusers
mailing list