Bookkeeping for mesh subsetting and/or polyhedral cell decomposition. Although the main use case is for handling vtk meshes, it is not specific to VTK alone. More...
Public Member Functions | |
foamVtkMeshMaps (const label size=0) | |
Construct null. More... | |
~foamVtkMeshMaps ()=default | |
Destructor. More... | |
const labelList & | cellMap () const |
Original cell ids for all cells (regular and decomposed). More... | |
const labelList & | pointMap () const |
Point labels for subsetted meshes. More... | |
const labelList & | additionalIds () const |
Any additional (user) labels. More... | |
void | clear () |
Clear. More... | |
void | renumberCells (const labelUList &mapping) |
Renumber cell ids (cellMap and additionalIds) to account for. More... | |
void | renumberPoints (const labelUList &mapping) |
Renumber point ids (pointMap) to account for subset meshes. More... | |
DynamicList< label > & | cellMap () |
Original cell ids for all cells (regular and decomposed). More... | |
DynamicList< label > & | pointMap () |
Point labels for subsetted meshes. More... | |
DynamicList< label > & | additionalIds () |
Any additional (user) labels. More... | |
Bookkeeping for mesh subsetting and/or polyhedral cell decomposition. Although the main use case is for handling vtk meshes, it is not specific to VTK alone.
The cellMap is a local-to-global lookup for normal and decomposed cells. The pointMap is an optional local-to-global lookup for point ids. The additional ids is typically used to store the cell-centre labels for additional points of decomposed cells
Definition at line 57 of file foamVtkMeshMaps.H.
|
inlineexplicit |
Construct null.
Definition at line 32 of file foamVtkMeshMapsI.H.
|
default |
Destructor.
|
inline |
Original cell ids for all cells (regular and decomposed).
A regular mesh comprising only primitive cell types, this will just be an identity list. However, for subsetted meshes and decomposed cells this becomes a useful means of mapping from the original mesh.
Definition at line 51 of file foamVtkMeshMapsI.H.
Referenced by vtuAdaptor::convertField(), vtuSizing::populateInternal(), vtuSizing::populateLegacy(), and vtuSizing::populateXml().
|
inline |
Point labels for subsetted meshes.
Definition at line 65 of file foamVtkMeshMapsI.H.
|
inline |
Any additional (user) labels.
Eg, cell-centre labels for additional points of decomposed cells
Definition at line 79 of file foamVtkMeshMapsI.H.
Referenced by vtuSizing::populateInternal(), vtuSizing::populateLegacy(), and vtuSizing::populateXml().
|
inline |
Clear.
Definition at line 42 of file foamVtkMeshMapsI.H.
void renumberCells | ( | const labelUList & | mapping | ) |
Renumber cell ids (cellMap and additionalIds) to account for.
subset meshes
Definition at line 33 of file foamVtkMeshMaps.C.
References Foam::inplaceRenumber().
void renumberPoints | ( | const labelUList & | mapping | ) |
Renumber point ids (pointMap) to account for subset meshes.
Definition at line 40 of file foamVtkMeshMaps.C.
References Foam::inplaceRenumber().
|
inline |
Original cell ids for all cells (regular and decomposed).
For a regular mesh comprising only primitive cell types, this will simply be an identity list. However, for subsetted meshes and decomposed cells this becomes a useful means of mapping from the original mesh.
Definition at line 58 of file foamVtkMeshMapsI.H.
|
inline |
Point labels for subsetted meshes.
Definition at line 72 of file foamVtkMeshMapsI.H.
|
inline |
Any additional (user) labels.
Eg, cell-centre labels for additional points of decomposed cells
Definition at line 86 of file foamVtkMeshMapsI.H.