<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>I am trying to get all vertices connected by an edge to a particular vertex in a mesh.</div><div><br></div><div>I tried this:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/CellEdges">http://www.vtk.org/Wiki/VTK/Examples/CellEdges</a><div>
<br></div><div>However, all of the point ids seem to be 0.</div><div><br></div><div>The output is:</div><div><br></div><div><div>The cell has 3 edges.</div><div>Edge 0 has 2 points.</div><div>Edge 0 uses point 0</div><div>
Edge 0 uses point 0</div><div>Edge 1 has 2 points.</div><div>Edge 1 uses point 0</div><div>Edge 1 uses point 0</div><div>Edge 2 has 2 points.</div><div>Edge 2 uses point 0</div><div>Edge 2 uses point 0</div></div><div><br>
</div><div>Where I would expect something like</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/CellEdges"></a><div>The cell has 3 edges.</div><div>Edge 0 has 2 points.</div><div>Edge 0 uses point 0</div>
<div>Edge 0 uses point 1</div><div>Edge 1 has 2 points.</div><div>Edge 1 uses point 1</div><div>Edge 1 uses point 2</div><div>Edge 2 has 2 points.</div><div>Edge 2 uses point 0</div><div>Edge 2 uses point 2</div><div><br>
</div><div>Can anyone see where this is going wrong?</div><div><br></div>Thanks,<br><br>David<br>
</div>