98 p[i] = meshPoints[operator[](i)];
127 const face& localF = localFaces[i];
131 label meshFacei = cFaces[j];
133 if (allFaces[meshFacei] == localF)
135 modelToMesh[i] = meshFacei;
161 const edge&
e = localEdges[i];
165 label edgeI = cEdges[j];
167 if (allEdges[edgeI] ==
e)
169 modelToMesh[i] = edgeI;
182 return m->faces(*
this);
193 forAll(oldFaces, oldFacei)
195 const face&
f = oldFaces[oldFacei];
197 face& newF = newFaces[newFacei];
202 label prevVertI = -1;
208 if (vertI != prevVertI)
210 newF[newFp++] = vertI;
216 if ((newFp > 1) && (newF[newFp-1] == newF[0]))
243 return m->edges(*
this);
267 return m->mag(*
this,
points);
#define forAll(list, i)
Loop across all elements in list.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
const Vector< Cmpt > & centre(const Foam::List< Vector< Cmpt >> &) const
Return *this (used for point which is a typedef to Vector<scalar>.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
A static collection of cell models, and a means of looking them up.
An analytical geometric cellShape.
const cellModel & model() const
Model reference.
labelList meshFaces(const faceList &allFaces, const cell &) const
Mesh face labels of this cell (in order of model)
scalar mag(const pointField &) const
Scalar magnitude.
autoPtr< cellShape > clone() const
Clone.
void collapse()
Collapse shape to correct one after removing duplicate vertices.
point centre(const pointField &) const
Centroid of the cell.
faceList faces() const
Faces of this cell.
cellShape()
Construct null.
edgeList edges() const
Edges of this cellShape.
pointField points(const pointField &meshPoints) const
Return the points corresponding to this cellShape.
label nPoints() const
Number of points.
labelList meshEdges(const edgeList &allEdges, const labelList &) const
Mesh edge labels of this cell (in order of model)
faceList collapsedFaces() const
Collapsed faces of this cell.
label nEdges() const
Number of edges.
label nFaces() const
Number of faces.
A cell is defined as a list of faces with extra functionality.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A face is a list of labels corresponding to mesh vertices.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.