Go to the documentation of this file.
39 Info <<
"Adding cells to the mesh" <<
endl;
52 const faceList& facesInCell = cellFaces[cI];
55 cell c(cellFaces[cI].size());
59 const face&
f = facesInCell[faceI];
68 if( faces[faceI] ==
f )
98 Info <<
"Finished adding cells to the mesh" <<
endl;
103 Info <<
"Adding " << cellFaces.
size() <<
" cells to the mesh" <<
endl;
121 forAll(facesInCell[fI], pI)
122 facesInCell[fI][pI] = cellFaces(cI, fI, pI);
128 forAll(facesInCell, faceI)
130 const face&
f = facesInCell[faceI];
132 const label pointI =
f[0];
139 if( faces[faceI] ==
f )
169 Info <<
"Finished adding cells to the mesh" <<
endl;
186 const face&
f = cellFaces[faceI];
188 const label pointI =
f[0];
195 if( faces[faceI] ==
f )
label sizeOfRow(const label posI, const label rowI) const
Return the number of element in the row at the given position.
label size() const
Returns the number of graphs.
#define forAll(list, i)
Loop across all elements in list.
Template functions to aid in the implementation of demand driven data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void clearOut() const
clear all pointer data
polyMeshGen & mesh_
reference to the mesh
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.
void clearOut()
clear out unnecessary data (pointFacesPtr_);
#define forAllRow(graph, rowI, index)
void append(const face &)
add a face at the end of the list
void setSize(const label)
Reset size of List.
label sizeOfGraph(const label posI) const
Returns the number of rows in the graph at that position.
label size() const
return the number of used elements
faceListPMG faces_
list of faces
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void append(const label rowI, const label)
Append an element to the given row.
cellListPMG cells_
list of cells
void addCell(const faceList &cellFaces)
void addCells(const LongList< faceList > &cellFaces)
add cells (vertices must be added)
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.
A cell is defined as a list of faces with extra functionality.