Even if I make a vtkPolygon, I still have to loop over a whole bunch of points (potentially) to get one that is inside the contour. I was wondering if there was a way to do this without loops.<br><br><div class="gmail_quote">
On Fri, Feb 25, 2011 at 9:47 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><div><div class="gmail_quote">On Fri, Feb 25, 2011 at 12:45 PM, Jonathan Morra <span dir="ltr"><<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not sure how I'd use this. Also, I don't have a vtkPolygon, but vtkPolyData.<div><div></div><div>
</div></div></blockquote></div><br></div></div><div>Since the points in your PolyData are a contour, I'm assuming they are ordered? If so, you can make them into a Polygon:</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon</a><div>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon" target="_blank"></a><br><font color="#888888">David</font></div></div>
</blockquote></div><br>