<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote id="DWT553" style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">Hey Moab-Dev,<br><br>Are the adjacent entities returned by iMesh_getEntAdj in any sort of order?<br></blockquote>Hi,<br>from the code, it looks like we are not preserving the order, we are ordering the adjacent entities by their handles (and eliminating the duplicates)<br>I am not seeing an easy solution if you need a particular order.<br>Maybe Tim has some suggestions. One solution would be to implement side number method in iMesh;<br>Or to look at connectivity array and figure out from there the order. I am not sure which one would be easier to do or be more efficient. <br><br>Iulian<br><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br>For example, consider a mesh of quadrilaterals. Get the edges adjacent<br>to a given face. If the edges are numbered according the convention<br>defined by MOAB<br>(http://www.mcs.anl.gov/uploads/cels/papers/P1573A.pdf) I would get<br>the array (0,1,2,3) or some shifted version of this. Will<br>iMesh_getEntAdj return (0,1,2,3) (or a shifted/flipped version of it),<br>or could I get something like (1,3,2,0) back (where the edges are not<br>ordered with respect to a CW or CCW traverse around the face)?<br><br>Thanks,<br>-Chris Eldred<br><br><br>-- <br>Chris Eldred<br>DOE Computational Science Graduate Fellow<br>Graduate Student, Atmospheric Science, Colorado State University<br>B.S. Applied Computational Physics, Carnegie Mellon University, 2009<br>chris.eldred@gmail.com / celdred@atmos.colostate.edu<br></blockquote><br></div></body></html>