<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 30, 2014 at 12:19 PM, Cedric Doucet <span dir="ltr"><<a href="mailto:cedric.doucet@inria.fr" target="_blank">cedric.doucet@inria.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hello,<br>I tried to use DMPlexCreateFromDAG function to create a DM structure from a hybrid mesh.<br>
To understand how it works, I look at ex5.c file.<br>Unfortunately, there are some things that I do not understand.<br>1. Why does coneSize lists faces of cells first, then faces of vertices and finally faces of edges (in 2D)? Listing faces of vertices, then faces of edges and finally faces of cells is not simpler?<br>
</div></div></blockquote><div><br></div><div>This is really about what order you number points. I wanted to support meshes with just cells and vertices, as well as</div><div>those with face and edges. I also wanted to be able to convert between them. Thus it made sense to leave the cell</div>
<div>and vertex numbers invariant under this change. I still think this is the best pragmatic alternative.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">2 What does coneOrientations contain? For two counterclockwise oriented triangles sharing an edge e={v0,v1}, I understand that {v0,v1} is the right oriented <span style="font-size:12pt">edge for the second triangle (and e for the first one) but what is the meaning of value -2? I read that it is -(o+1) with o=1 but why does o equal 1 in this case?</span></div>
</div></blockquote><div> </div><div>Right now, orientation o = <sign><start> means:</div><div><br></div><div> <sign>: + means traverse in cone order</div><div> - means traverse in the reverse of cone order</div>
<div><br></div><div> <start>: cone point to start iteration on</div><div> if <sign> is -, then start on point -(<start>+1)</div><div><br></div><div>Thus -2 means start on point 1 and go in reverse order, so</div>
<div>for an edge that would be {1, 0} which is what you want.</div><div><br></div><div>What we should really have is <start> identify a group element from the symmetry</div><div>group of the point, and <sign> indicate inversion. However, that will be a big rewrite</div>
<div>and needs to be motivated by applications.</div><div><br></div><div> Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">
Thank you very much for your help!<br>Best regards,<br>Cédric Doucet<br><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>