<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>If you simply want Barycentric coordinates that is quite simple:
<div>If x is a global coordinate then
<div>z=geometry.local(x) ;</div>
<div>l[0]=1-z[0]-...-z[d-1];</div>
<div>l[i+1]=z[i]; (0<=i<d)</div>
<div>gives you Barycentric coordinates. </div>
<div>Andreas<br>
<div><br>
</div>
</div>
</div>
<br>
Andreas Buhr <andreas@andreasbuhr.de> wrote:<br>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 04/12/2013 04:46 PM, Sacconi, Andrea wrote:<br>
> If you are given a point and an entity, is there a direct method in DUNE<br>
> to get the barycentric coordinates of that point with respect to the<br>
> vertices of the entity?<br>
<br>
Hi Andrea,<br>
<br>
I think a p1basis is equivalent to barycentric coordinates.<br>
Can you create a p1 basis and call evaluateFunction?<br>
<br>
Best,<br>
Andreas<br>
<br>
<br>
_______________________________________________<br>
Dune mailing list<br>
Dune@dune-project.org<br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
<br>
</div>
</span></font>
</body>
</html>