If no visualization, I think It will be difficult to understand the result, comparing it with the triangle strip used as input.<div><br></div><div>This is like 1/2 lines comparing with the other. Only visualize the result instead of everything =).</div>
<div><br></div><div><a href="http://pastie.org/private/uavbrka9wzbr66ugqabgwg">http://pastie.org/private/uavbrka9wzbr66ugqabgwg</a><br><br><br><br><div class="gmail_quote">2012/8/14 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">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></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.<span class="HOEnZb"><font color="#888888"><br clear="all">
<br>David</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--------<br>Gonzalo Amadio<br><br>
</div>