[Dune] Barycentric coordinates of a point w.r.t. an entity
Dedner, Andreas
A.S.Dedner at warwick.ac.uk
Fri Apr 12 19:29:50 CEST 2013
If you simply want Barycentric coordinates that is quite simple:
If x is a global coordinate then
z=geometry.local(x) ;
l[0]=1-z[0]-...-z[d-1];
l[i+1]=z[i]; (0<=i<d)
gives you Barycentric coordinates.
Andreas
Andreas Buhr <andreas at andreasbuhr.de> wrote:
On 04/12/2013 04:46 PM, Sacconi, Andrea wrote:
> If you are given a point and an entity, is there a direct method in DUNE
> to get the barycentric coordinates of that point with respect to the
> vertices of the entity?
Hi Andrea,
I think a p1basis is equivalent to barycentric coordinates.
Can you create a p1 basis and call evaluateFunction?
Best,
Andreas
_______________________________________________
Dune mailing list
Dune at dune-project.org
http://lists.dune-project.org/mailman/listinfo/dune
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20130412/768fac16/attachment.htm>
More information about the Dune
mailing list