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 ()=default | |
Default construct: zero-sized, no reserved sizes. More... | |
const labelList & | cellMap () const noexcept |
Original cell ids for all cells (regular and decomposed). More... | |
DynamicList< label > & | cellMap () noexcept |
Write access to original cell ids. More... | |
const labelList & | pointMap () const noexcept |
Point labels for subsetted meshes. More... | |
DynamicList< label > & | pointMap () noexcept |
Write access to point labels for subsetted meshes. More... | |
const labelList & | additionalIds () const noexcept |
Any additional (user) labels. More... | |
DynamicList< label > & | additionalIds () noexcept |
Write access to additional (user) labels. More... | |
void | clear () |
Clear sizing. More... | |
void | renumberCells (const labelUList &mapping) |
Renumber cell ids (cellMap and additionalIds) to account for subset meshes. More... | |
void | renumberPoints (const labelUList &mapping) |
Renumber point ids (pointMap) to account for subset meshes. 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 54 of file foamVtkMeshMaps.H.
|
default |
Default construct: zero-sized, no reserved sizes.
|
inlinenoexcept |
Original cell ids for all cells (regular and decomposed).
For regular mesh comprising only primitive cell types, this will 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 34 of file foamVtkMeshMapsI.H.
Referenced by vtuAdaptor::convertField(), vtuSizing::populateLegacy(), vtuSizing::populateShapesLegacy(), vtuSizing::populateShapesXml(), and vtuSizing::populateXml().
|
inlinenoexcept |
Write access to original cell ids.
Definition at line 41 of file foamVtkMeshMapsI.H.
|
inlinenoexcept |
Point labels for subsetted meshes.
Definition at line 48 of file foamVtkMeshMapsI.H.
|
inlinenoexcept |
Write access to point labels for subsetted meshes.
Definition at line 55 of file foamVtkMeshMapsI.H.
|
inlinenoexcept |
Any additional (user) labels.
Eg, cell-centre labels for additional points of decomposed cells
Definition at line 62 of file foamVtkMeshMapsI.H.
Referenced by vtuSizing::populateLegacy(), vtuSizing::populateShapesLegacy(), vtuSizing::populateShapesXml(), and vtuSizing::populateXml().
|
inlinenoexcept |
Write access to additional (user) labels.
Definition at line 69 of file foamVtkMeshMapsI.H.
|
inline |
Clear sizing.
Definition at line 25 of file foamVtkMeshMapsI.H.
References DynamicList< T, SizeMin >::clear().
void renumberCells | ( | const labelUList & | mapping | ) |
Renumber cell ids (cellMap and additionalIds) to account for subset meshes.
Definition at line 26 of file foamVtkMeshMaps.C.
References Foam::inplaceRenumber().
void renumberPoints | ( | const labelUList & | mapping | ) |
Renumber point ids (pointMap) to account for subset meshes.
Definition at line 33 of file foamVtkMeshMaps.C.
References Foam::inplaceRenumber().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.