<div class="gmail_quote">On Tue, Aug 14, 2012 at 2:43 PM, Gonzalo Amadio <span dir="ltr"><<a href="mailto:gonzaloamadio@gmail.com" target="_blank">gonzaloamadio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, I want to extract cells using two specified points. I was looking into vtkPolyData and I found the function GetPointCells, but that is only for one point. And I need it for two points instead of one.<br><br>So I used this example : <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints</a><br>
<br>I modified a little, instead of working with a spheresource I try to make it work with a triangle strip (taken from this example : <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/TriangleStrip" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/TriangleStrip</a> )<br>
<br>In this last example, there are 2 triangles, and (as in the code is showed), I want the cell that uses the point 0.<div>But as shown in the result, it returns the 2 triangles instead of only one.<br><div><br></div><div>
Maybe it is because the vtkTriangleStrip ? Is ok my idea?</div><div><br></div><div><br></div><div>Thank you.!</div></div></blockquote><div><br></div>You should be able to make a demo of this problem that doesn't use visualization right? If so, you can cut the number of lines we have to look at in half.<br clear="all">
<br>David</div>