<div dir="ltr">Hi Jean-Michel,<div><br></div><div>I don't think that the locator uses "cell center" for any of its computations.  Your best resource is the code itself. Take a look at the code to see how vtkCellLocator::FindCell() is implemented.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 23, 2016 at 10:27 AM, Jean-Michel Lucas <span dir="ltr"><<a href="mailto:jm.lucas@gantha.com" target="_blank">jm.lucas@gantha.com</a>></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 lang="FR" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">Thank
you for your answer David.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">I
referred to neighbour cells because I wanted to know how the closest cell is
identified (I assumed it was based on the distance).<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">My
problem is to know, given a point that is in a large cell but actually closer
to the center of a neighbour smaller cell, which of the two is identified as
the closest cell.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Jean-Michel<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>

<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">De :</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> David Gobbi
[mailto:<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>] <br>
<b>Envoyé :</b> vendredi 19 février 2016 21:01<br>
<b>À :</b> Jean-Michel Lucas<br>
<b>Cc :</b> VTK Users<br>
<b>Objet :</b> Re: [vtkusers] Cell locator : find closest point
computation details<u></u><u></u></span></p>

</div><div><div class="h5">

<p class="MsoNormal"><u></u> <u></u></p>

<div>

<div>

<div>

<p class="MsoNormal">On Fri, Feb 19, 2016 at 10:05 AM, Jean-Michel Lucas <<a href="mailto:jm.lucas@gantha.com" target="_blank">jm.lucas@gantha.com</a>>
wrote:<u></u><u></u></p>

<div>

<div>

<p class="MsoNormal"><span lang="EN-US">Dear all,</span><u></u><u></u></p>

<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>

<p class="MsoNormal"><span lang="EN-US">Could someone explain me how the vtkCellLocator::FindClosestPoint
method works ? More specifically I would like to know how the distance is
computed from a given point: is it measured with respect to the center of the
neighbour cells ?</span><u></u><u></u></p>

</div>

</div>

<div>

<p class="MsoNormal"><u></u> <u></u></p>

</div>

<div>

<p class="MsoNormal">If used on vtkPolyData, it gives the perpendicular distance
to the closest surface.  I'm pretty sure that the neighbour cells are not
part the computation.<u></u><u></u></p>

</div>

<div>

<p class="MsoNormal"><u></u> <u></u></p>

</div>

<div>

<p class="MsoNormal"> - David<u></u><u></u></p>

</div>

</div>

<p class="MsoNormal"><u></u> <u></u></p>

</div>

</div>

</div></div></div>

</div>


</blockquote></div><br></div></div></div>