[vtkusers] Strange vtkCell::GetEdge results

David Doria daviddoria+vtk at gmail.com
Sun Apr 18 09:25:07 EDT 2010


I am trying to get all vertices connected by an edge to a particular vertex
in a mesh.

I tried this:
http://www.vtk.org/Wiki/VTK/Examples/CellEdges

However, all of the point ids seem to be 0.

The output is:

The cell has 3 edges.
Edge 0 has 2 points.
Edge 0 uses point 0
Edge 0 uses point 0
Edge 1 has 2 points.
Edge 1 uses point 0
Edge 1 uses point 0
Edge 2 has 2 points.
Edge 2 uses point 0
Edge 2 uses point 0

Where I would expect something like

<http://www.vtk.org/Wiki/VTK/Examples/CellEdges>
The cell has 3 edges.
Edge 0 has 2 points.
Edge 0 uses point 0
Edge 0 uses point 1
Edge 1 has 2 points.
Edge 1 uses point 1
Edge 1 uses point 2
Edge 2 has 2 points.
Edge 2 uses point 0
Edge 2 uses point 2

Can anyone see where this is going wrong?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100418/fad27b78/attachment.htm>


More information about the vtkusers mailing list