[vtkusers] Neighbours of a point in a mesh

David Doria daviddoria at gmail.com
Thu Jun 9 17:47:05 EDT 2011


On Thu, Jun 9, 2011 at 5:40 PM, agerlach <agerlach at gmail.com> wrote:
> David,
>
> I know this thread is old, but I think you have an error in this code. For
> neighboring cells that share an edge, the non-seed point for that edge is
> included twice. You need to include a check to see if that point in in your
> connectedVertices List before adding it.
>
> Adam

It looks like this was right before the examples wiki got going :)

I think this is a better method, and probably doesn't have the same problem:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/VertexConnectivity

Let me know if you agree.

David



More information about the vtkusers mailing list