Thank you for your response! I was able to find the parent element. Is there a way I could obtain the nodal information as well?
Viviana Palacio Betancur PhD Student | 2016 Cohort de Pablo Group Institute for Molecular Engineering University of Chicago On Thu, May 17, 2018 at 4:34 PM, John Peterson <jwpeter...@gmail.com> wrote: > > > On Thu, May 17, 2018 at 2:58 PM, Viviana Palacio Betancur < > vpalac...@uchicago.edu> wrote: > >> Hello, >> >> Currently I'm working on calculating surface normals for a 3D mesh. The >> way >> I have set up this is by extracting the surface mesh by using >> mesh->get_boundary_info().sync(mesh_surf); >> This gives me a 2D mesh that I can use for calculating element normals. >> However, I haven't been able to establish the connection between the >> element ids of the surface mesh to the ids of the original mesh. >> > > The elements in mesh_surf will have an interior_parent() which points to > the higher-dimensional element they came from. > > > -- > John > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users