<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>