[vtkusers] Neighbours of a point in a mesh

David Doria daviddoria at gmail.com
Thu Jun 9 18:23:10 EDT 2011


On Thu, Jun 9, 2011 at 5:56 PM, agerlach <agerlach at gmail.com> wrote:
> I am not currently at my machine with VTK, but to me the example looks like
> it has the same problem.
>
> In the picture the seed point should have 5 neighbors, but from the way I
> read the code the output will be 10 with each neighbor listed twice.

Hm, the output is (seems correct):
Connected vertices: 1 2 8 18 19

There is a note at the top that says "you must run vtkExtractEdges
first". This should then prevent vertices being shared by triangles
(since there now are no triangles, only edges), which was your concern
right?

David



More information about the vtkusers mailing list