[vtkusers] Cell locator : find closest point computation details
Jean-Michel Lucas
jm.lucas at gantha.com
Thu Feb 25 12:20:35 EST 2016
Thank you for your answer David, I'll try and have a look at the code.
Jean-Michel
De : David Gobbi [mailto:david.gobbi at gmail.com]
Envoyé : mardi 23 février 2016 18:47
À : Jean-Michel Lucas
Cc : VTK Users
Objet : Re: [vtkusers] Cell locator : find closest point computation details
Hi Jean-Michel,
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.
- David
On Tue, Feb 23, 2016 at 10:27 AM, Jean-Michel Lucas <jm.lucas at gantha.com> wrote:
Thank you for your answer David.
I referred to neighbour cells because I wanted to know how the closest cell is identified (I assumed it was based on the distance).
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.
Jean-Michel
De : David Gobbi [mailto:david.gobbi at gmail.com]
Envoyé : vendredi 19 février 2016 21:01
À : Jean-Michel Lucas
Cc : VTK Users
Objet : Re: [vtkusers] Cell locator : find closest point computation details
On Fri, Feb 19, 2016 at 10:05 AM, Jean-Michel Lucas <jm.lucas at gantha.com> wrote:
Dear all,
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 ?
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.
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160225/7beee782/attachment.html>
More information about the vtkusers
mailing list