From: Stogner, R. H <roy...@ic...> - 2019-12-30 19:59:07
|
On Wed, 25 Dec 2019, Amneet Bhalla wrote: > I am working with triangulated surfaces in 3D, and I need to: > > 1) Calculate angle-weighted normals at the vertex points, and > > 2) Calculate average of normals of two triangles sharing an edge. > > For both cases, I think I would need to know all elements sharing a common > vertex, and two elements sharing a common edge, respectively. Can this > information extracted from libMesh? For (1) the answer can be *no* in the case of a distributed mesh with default ghosting, but if you use a replicated mesh or you have a ghosting functor that includes point neighbors then you can use Elem::find_point_neighbors(). For (2) you just use Elem::neighbor_ptr(). --- Roy |