foamVtkMeshMaps Class Reference

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...

Inheritance diagram for foamVtkMeshMaps:
[legend]

Public Member Functions

 foamVtkMeshMaps ()
 Default construct: zero-sized, no reserved size. More...
 
 foamVtkMeshMaps (const label size)
 Construct with reserved size. More...
 
const labelListcellMap () const
 Original cell ids for all cells (regular and decomposed). More...
 
DynamicList< label > & cellMap ()
 Write access to original cell ids. More...
 
const labelListpointMap () const
 Point labels for subsetted meshes. More...
 
DynamicList< label > & pointMap ()
 Write access to point labels for subsetted meshes. More...
 
const labelListadditionalIds () const
 Any additional (user) labels. More...
 
DynamicList< label > & additionalIds ()
 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. More...
 
void renumberPoints (const labelUList &mapping)
 Renumber point ids (pointMap) to account for subset meshes. More...
 

Detailed Description

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

Source files

Definition at line 58 of file foamVtkMeshMaps.H.

Constructor & Destructor Documentation

◆ foamVtkMeshMaps() [1/2]

foamVtkMeshMaps ( )
inline

Default construct: zero-sized, no reserved size.

Definition at line 32 of file foamVtkMeshMapsI.H.

◆ foamVtkMeshMaps() [2/2]

foamVtkMeshMaps ( const label  size)
inlineexplicit

Construct with reserved size.

Definition at line 40 of file foamVtkMeshMapsI.H.

Member Function Documentation

◆ cellMap() [1/2]

const Foam::labelList & cellMap ( ) const
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 59 of file foamVtkMeshMapsI.H.

Referenced by vtuAdaptor::convertField(), vtuSizing::populateLegacy(), and vtuSizing::populateXml().

Here is the caller graph for this function:

◆ cellMap() [2/2]

Foam::DynamicList< Foam::label > & cellMap ( )
inline

Write access to original cell ids.

Definition at line 66 of file foamVtkMeshMapsI.H.

◆ pointMap() [1/2]

const Foam::labelList & pointMap ( ) const
inline

Point labels for subsetted meshes.

Definition at line 73 of file foamVtkMeshMapsI.H.

◆ pointMap() [2/2]

Foam::DynamicList< Foam::label > & pointMap ( )
inline

Write access to point labels for subsetted meshes.

Definition at line 80 of file foamVtkMeshMapsI.H.

◆ additionalIds() [1/2]

const Foam::labelList & additionalIds ( ) const
inline

Any additional (user) labels.

Eg, cell-centre labels for additional points of decomposed cells

Definition at line 87 of file foamVtkMeshMapsI.H.

Referenced by vtuSizing::populateLegacy(), and vtuSizing::populateXml().

Here is the caller graph for this function:

◆ additionalIds() [2/2]

Foam::DynamicList< Foam::label > & additionalIds ( )
inline

Write access to additional (user) labels.

Definition at line 94 of file foamVtkMeshMapsI.H.

◆ clear()

void clear ( )
inline

Clear sizing.

Definition at line 50 of file foamVtkMeshMapsI.H.

◆ renumberCells()

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().

Here is the call graph for this function:

◆ renumberPoints()

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().

Here is the call graph for this function:

The documentation for this class was generated from the following files: