<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'>Hello,<br>Did you call ReadUtil::update_adjacencies?<br>If you create some elements, when you do the first adjacency call, the internal adjacencies are created. <br>If you create more elements after the first adjacency call, you have to call "update_adjacencies" for the new elements created, otherwise the up-vertex adjacencies are not updated.<br><br>This is my guess, it is hard to figure why it is not working for you with the limited info you sent :(<br><br>Best Regards,<br>Iulian<br><br><hr id="zwchr"><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;"><div dir="ltr"><div>Hey MOAB-Dev,<br><br>I am having trouble creating AEntities for a simple 2D planar mesh. I adapted ReadTemplate.cpp to create a mesh generator and it appears to be working fine (vertices are all present with correct vertex-vertex and vertex-face adjacencies and positions, faces are all present with correct vertex connectivity). However, when I try to create AEntities (ie edges) using the following code (iface is my Core instance):<br>
<br>  Range verts;<br>  result = iface->get_entities_by_type(0, MBVERTEX, verts);<br>  if (MB_SUCCESS != result) return result;<br>  result = MeshTopoUtil(iface).construct_aentities(verts);<br>  if (MB_SUCCESS != result) return result;<br>
<br>  //get edge entities, by type<br>  Range edges;<br>  rval = iface->get_entities_by_type(0, MBEDGE, edges);<br>  assert(rval == MB_SUCCESS);<br><br>  cout << "Number of edges is " << edges.size() <<  endl;<br>
<br>I get the following output:<br><br clear="all">Number of edges is 0<br><br>Also, attempting to get vertex-edge adjacencies or bridge adjacencies through edges returns null sets.<br><br></div><div>Any ideas as to what is going wrong?<br>
<br></div><div>-Chris<br><br></div><div>-- <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>
<a href="mailto:chris.eldred@gmail.com" target="_blank">chris.eldred@gmail.com</a> / <a href="mailto:celdred@atmos.colostate.edu" target="_blank">celdred@atmos.colostate.edu</a> 
</div></div>
</blockquote><br></div></body></html>