<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">Hi All,</span><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">         I just want to ask, what is purpose of function safeDownCast(), as it is not described ???</div>
<div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">Looking forward your reply soon.</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px">
rahul indoria</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 6:19 PM, Seth Gilchrist <span dir="ltr">&lt;<a href="mailto:seth@mech.ubc.ca" target="_blank">seth@mech.ubc.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div dir="ltr">Hi Rahul,</div><div dir="ltr">It seems that you want to provide x,y,z coordinates and get the index of the point back. Once you have the index, you can use polydata&#39;s &quot;GetPointData&quot; method to access the point data.</div>


<div dir="ltr"><br></div><div dir="ltr">To do this, you can use the vtkKdTreePointLocator which as methods like &quot;FindClosestPoint&quot;, &quot;FindNClosestPoints&quot;, and &quot;FindPointsWithinRadius&quot;. There are a few examples of how to use this class at <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx#KD-Tree" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx#KD-Tree</a>. There are other classes like vtkPointLocator, vtkOctreePointLocator which you can look at too.</div>


<div dir="ltr"><div><br></div><div>Cheers,</div><div>Seth</div><div><br></div><span style="font-style:italic">Seth Gilchrist, MASc, PhD Candidate</span><br style="font-style:italic"><span style="font-style:italic;font-family:&#39;courier new&#39;,monospace">+---------------------------------------+</span><br style="font-style:italic;font-family:&#39;courier new&#39;,monospace">


<span style="font-style:italic;font-family:&#39;courier new&#39;,monospace">Orthopaedic and Injury Biomechanics Group<br>UBC Department of Mechanical Engineering</span><span style="font-style:italic;font-family:&#39;courier new&#39;,monospace"></span><br style="font-style:italic;font-family:&#39;courier new&#39;,monospace">


<span style="font-style:italic;font-family:&#39;courier new&#39;,monospace">6th Floor-2635 Laurel Street</span><br style="font-style:italic;font-family:&#39;courier new&#39;,monospace"><span style="font-style:italic;font-family:&#39;courier new&#39;,monospace">Vancouver, BC V5Z-1M9<br>


</span><span style="font-style:italic;font-family:&#39;courier new&#39;,monospace">+---------------------------------------+<br><a href="mailto:seth@mech.ubc.ca" target="_blank">seth@mech.ubc.ca</a><br>Fax <a href="tel:604-675-2576" value="+16046752576" target="_blank">604-675-2576</a></span></div>


</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best  Regards<br>Rahul Indoria<br>Mobile No: +49-157-35652212</b></span><br></div>
</div></div>