dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21300
[Question #144411]: How do I compute the distance from a cell to a given point?
New question #144411 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/144411
Dear all,
For refinement reasons, I need to compute the distances from each cell in the mesh to each of a number of points.
Ideally, I would like:
cell.distance(point) = 0 iff point is contained in the cell or on the border, and
cell.distance(point) = min{ dist(x,point) | x \in cell }, that is the smallest distance to the nearest face, if point is outside the cell.
I have not been able to find this functionality in the documentation; is there a quick and easy way to do this? In theory, I can write this myself for tetrahedra, but it gets a bit messy, and I don't want to reinvent the deep plate, if the functionality or part of it already exists.
Thanks very much in advance!
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
Follow ups