<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 30, 2013 at 6:34 AM, shirani kannangara <span dir="ltr">&lt;<a href="mailto:mangalika673@gmail.com" target="_blank">mangalika673@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for your kind reply. <span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">VTK/Examples/Cxx/PolyData/</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">PointInsideObject.example works well for a sphere.I could be able to check three points manually (one is in,the other one is on the surface,and the last one is outside the surface) correctly.But I want to use an array to feed data( as an array to be used in my actual liver program) to check enclosed points.What I want to  know is&quot;  Do I have to convert  array values  to polydata points&quot; .Can you please give me a small hint Codes are attached herewith.</span><div>

<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">regards</span></div><span class=""><font color="#888888"><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Shirani</span></div>
</font></span></div></blockquote><div><br>Please keep the discussion on the mailing list. <br><br>I believe you can use this to test if a single point is inside a PolyData:<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellTreeLocator">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellTreeLocator</a><br>
<div><br>David</div></div></div></div></div>