<div dir="ltr"><div dir="ltr">On Mon, Feb 8, 2021 at 6:01 AM Nicolas Barral <<a href="mailto:nicolas.barral@math.u-bordeaux.fr">nicolas.barral@math.u-bordeaux.fr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
Can I make any assumption on the orientation of triangular facets in a <br>
tetrahedral plex ? I need the inward facet normals. Do I need to use <br>
DMPlexGetOrientedFace or can I rely on either the tet vertices ordering, <br>
or the faces ordering ? Could DMPlexGetRawFaces_Internal be enough ?<br></blockquote><div><br></div><div>You can do it by hand, but you have to account for the face orientation relative to the cell. That is what</div><div>DMPlexGetOrientedFace() does. I think it would be easier to use the function below.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Alternatively, is there a function that computes the normals - without <br>
bringing out the big guns ?<br></blockquote><div><br></div><div>This will compute the normals</div><div><br></div><div><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexComputeCellGeometryFVM.html">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexComputeCellGeometryFVM.html</a><br></div><div> </div><div>Should not be too heavy weight.</div><div><br></div><div>  THanks,</div><div><br></div><div>    Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks<br>
<br>
-- <br>
Nicolas<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>