<div class="gmail_quote">On Thu, Aug 13, 2009 at 10:41 AM, Yang, Jinzhong <span dir="ltr"><<a href="mailto:jinzhong76@gmail.com">jinzhong76@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Didn’t you check the methods GetPointCells() and Get
CellPoints()? If the cells are simply the triangles or lines, it is quite easy
to do that. If the cells are more complicated, you may need some additional
processing.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">-Jinzhong</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p></div></div></blockquote><div>Jinzhong - thanks for the reply, but please reply to the list rather than just me so everyone can share the discussion :)<br>
<br>I see, so do something like this:<br><br>GetPointNeighbors()<br>---------------------<br>cells = GetPointCells(queryPoint)<br>for each cell in cells<br> points = GetCellPoints()<br> for each point in points<br> IsEdge(queryPoint, point)<br>
<br>Can that be added as function to vtkPolyData? It seems like this would be a very common operation.<br><br clear="all">Thanks,<br><br>David<br>
<br></div></div>