OpenABF 2.1.0
Loading...
Searching...
No Matches
Public Attributes | List of all members
OpenABF::MergedMesh< MeshType > Struct Template Reference

Result of merging several meshes into one. More...

#include <OpenABF/OpenABF.hpp>

Public Attributes

MeshType::Pointer mesh
 The combined mesh.
 
std::vector< std::pair< std::size_t, std::size_t > > vertex_source
 vertex_source[merged_idx] = {input mesh index, source vertex index}
 
std::vector< std::pair< std::size_t, std::size_t > > face_source
 face_source[merged_idx] = {input mesh index, source face index}
 

Detailed Description

template<typename MeshType>
struct OpenABF::MergedMesh< MeshType >

Result of merging several meshes into one.

The inverse bookkeeping of HalfEdgeMesh::extract_connected_components: where extract splits one mesh into N with maps back to the source, merge combines N meshes into one with maps back to each source mesh. Compose face_source/vertex_source with the face_map/vertex_map of the components you merged to trace a merged element all the way back to the pre-extraction mesh.

Template Parameters
MeshTypeA HalfEdgeMesh specialization