<div class="gmail_quote">2010/3/28 Андрей Траченко <span dir="ltr"><<a href="mailto:goodrone@gmail.com">goodrone@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
given a vtkPolyData, how to traverse all edges in it? While<br>
traversing, how to get ids of cells containing each edge?<br>
<br>
There is a precondition: the polydata is either a planar triangular<br>
mesh, or a planar quadrangular mesh.<br>
<br>
Thank you for your time,<br>
Andew<br><br></blockquote><div><br></div><div>I added some code to this example: </div><a href="http://www.vtk.org/Wiki/VTK/Examples/ExtractEdges">http://www.vtk.org/Wiki/VTK/Examples/ExtractEdges</a></div><div class="gmail_quote">
<br></div><div class="gmail_quote">to show to how to traverse the edges obtained using vtkExtractEdges. I'm not sure how you would get the cell that each edge came from, sorry. I imagine you'd have to edit vtkExtractEdges to append an optional "SourceCellId" type of array to the output.</div>
<div class="gmail_quote"><br>David</div>