Hello, I have a polydata, and after extracting its boundary edges I want to traverse them, and for each point in each edge, I want to find the point Id in the polydata. Something like this :<br><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

vtkSmartPointer&lt;vtkFeatureEdges&gt; boundaryEdges = vtkSmartPointer&lt;vtkFeatureEdges&gt;::New();<br><span class="Apple-tab-span" style="white-space:pre">        </span>boundaryEdges-&gt;SetInput(polydata);<br><span class="Apple-tab-span" style="white-space:pre">        </span>boundaryEdges-&gt;BoundaryEdgesOn();<br>

<span class="Apple-tab-span" style="white-space:pre">        </span>boundaryEdges-&gt;FeatureEdgesOff();<br><span class="Apple-tab-span" style="white-space:pre">        </span>boundaryEdges-&gt;ManifoldEdgesOff();<br><span class="Apple-tab-span" style="white-space:pre">        </span>boundaryEdges-&gt;NonManifoldEdgesOff();<br>

<span class="Apple-tab-span" style="white-space:pre">        </span>boundaryEdges-&gt;Update();<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;vtkPolyData&gt; edges = boundaryEdges-&gt;GetOutput();<br>

</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

for(vtkIdType i = 0; i &lt; edges-&gt;GetNumberOfCells(); i++)//for each point in boundary edges<br><span class="Apple-tab-span" style="white-space:pre">        </span> {<br><span class="Apple-tab-span" style="white-space:pre">                </span>vtkSmartPointer&lt;vtkLine&gt; line = vtkLine::SafeDownCast(edges-&gt;GetCell(i));<br>

<span class="Apple-tab-span" style="white-space:pre">                </span>vtkSmartPointer&lt;vtkPoints&gt; points_line = line-&gt;GetPoints(); //2 points<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="Apple-tab-span" style="white-space:pre">                </span>double p[3];<br>

<span class="Apple-tab-span" style="white-space:pre">                </span>for(int j = 0; j &lt; points_line-&gt;GetNumberOfPoints(); j++)<br><span class="Apple-tab-span" style="white-space:pre">                </span>{<br><span class="Apple-tab-span" style="white-space:pre">                        </span>points_line-&gt;GetPoint(j,p);<br>

<span class="Apple-tab-span" style="white-space:pre">                        </span>vtkIdType idPointCorrespondant = polydata-&gt;FindPoint(p);<font color="#ff6666">//Error in this line<br></font>                }<br>         }</blockquote><div>

<br></div><div><br></div><div>The error I have is in this function (into the file vtkIdList.h) :</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

inline vtkIdType vtkIdList::InsertNextId(const vtkIdType vtkid)<br>{<br>  if ( this-&gt;NumberOfIds &gt;= this-&gt;Size ) <font color="#ff0000">//the debugger stop in this line<br></font>    {<br>    this-&gt;Resize(this-&gt;NumberOfIds+1);<br>

    }<br>  this-&gt;Ids[this-&gt;NumberOfIds++] = vtkid;<br>  return this-&gt;NumberOfIds-1;<br>}</blockquote></div><div><br></div><div>I tried the same code with another polydata and it works, So I can&#39;t figure out what is wrong with my polydata. </div>

<div>Here is the code of the example : <a href="http://pastie.org/4558410">http://pastie.org/4558410</a><br>Someone can help me?<br><br>Thank you!</div><div><br clear="all"><div><br></div>-- <br>--------<br>Gonzalo Amadio<br>

<br>
</div>