<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div class="gmail_quote">On Fri, Feb 25, 2011 at 12:14 PM, Jonathan Morra <span dir="ltr">&lt;<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have a vtkPolyData that is a contour in 2D and I need a way to get any point that is inside that contour.  I can&#39;t use vtkPolyData.GetCenter() because I don&#39;t know anything about the geometry of the contour (could be convex).  Is there a way to do this quickly?<div>

<br></div><div>Thanks.</div><div><br></div></blockquote><div>Would this work for you?</div><div> </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon</a><div>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon"></a><br></div><div>David </div></div></div>