On 12/2/19 12:52 PM, Shahab Golshan wrote:
> Thank you again for your help. I have another question. I want to find the
> projection of a point on a face (the point on a face that has the closest
> distance to the query point). I think the function:
> project_real_point_to_unit_point_on_face should do this task, but I'm not
> sure. Can someone help me on this?
The function is going to give you a point in the reference coordinate system
of the face. If that's what you want, then that's the function you should
call. Have you tried?
As a general rule, it's often useful to start not using points in real space
and transforming them back into the coordinate systems of cells and faces
(which is very expensive), but by starting from points in the reference
coordinate systems and transforming them forward into real space (cheap). This
is, for example, how we define quadrature points. I don't know what you're
trying to do, but it might be worthwhile thinking about alternative ways to
achieve what you're looking for.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/