Go to the documentation of this file.
50 newFaces_[faceI].transfer(faces[faceI]);
54 newCells_[cellI].transfer(
cells[cellI]);
81 const face&
f = cellFaces[faceI];
void setSize(const label nElmts)
set the number of used elements
#define forAll(list, i)
Loop across all elements in list.
Template functions to aid in the implementation of demand driven data.
const cellList & cells() const
label nCells_
number of cells
cellListPMG & cellsAccess()
access to cells
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label nFaces_
number of faces
void setSize(const label nElmts)
set the number of used elements
polyMeshGenModifierAddCellByCell(polyMeshGen &mesh)
Construct from the reference to the mesh.
#define forAllRow(graph, rowI, index)
virtual const faceList & faces() const
Return raw faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
~polyMeshGenModifierAddCellByCell()
LongList< cell > newCells_
LongList< face > newFaces_
void append(const label rowI, const label)
Append an element to the given row.
const dimensionedScalar c
Speed of light in a vacuum.
A face is a list of labels corresponding to mesh vertices.
faceListPMG & facesAccess()
access to mesh faces
void size(const label)
Override size to be inconsistent with allocated storage.
void addCell(const faceList &cell)
add a single cell (vertices must be added);
A cell is defined as a list of faces with extra functionality.
void transfer(faceList &)