[vtkusers] how can I pick a cell and its neighbors dinamically!!!!

David Doria daviddoria at gmail.com
Wed Aug 15 11:21:22 EDT 2012


On Wed, Aug 15, 2012 at 11:17 AM, tasnim <hanene-jeder at hotmail.fr> wrote:
> Hi everybody,
> I want to pick a cell and its neighbors. But the cellId will not be fixed
> like in this example:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellPointNeighbors
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellPointNeighbors . I
> want that when i pick on the mesh, i will retrieve the cell and all its
> neighbors in order to subdivide them then. I tried to modify that example in
> order to do it, but i can't , any help please!!!!
> Here is my code that i added it to the OnLeftButtonDown() method,but it
> didn't work :( :


"but it didn't work :( " isn't is a very helpful clue for us. What
didn't work? Was there a compiler error? Was there a crash (if so,
which line?)? Was the output not what you expected?

And as always, compilable examples are much easier to help with than
just snippets.

David



More information about the vtkusers mailing list