Go to the documentation of this file.
49 addPointCellLabels_(),
98 nAddCells += nQuads + nTris;
123 label addPointI = 0, addCellI = 0;
200 bool substituteCell =
true;
206 const bool isOwner = (owner[cFaces[cFaceI]] == cellI);
218 f.trianglesQuads(
mesh_.
points(), trii, quadi, triFcs, quadFcs);
227 substituteCell =
false;
239 const face& quad = quadFcs[quadI];
250 addVtkVerts[0] = quad[3];
251 addVtkVerts[1] = quad[2];
252 addVtkVerts[2] = quad[1];
253 addVtkVerts[3] = quad[0];
257 addVtkVerts[0] = quad[0];
258 addVtkVerts[1] = quad[1];
259 addVtkVerts[2] = quad[2];
260 addVtkVerts[3] = quad[3];
262 addVtkVerts[4] = newVertexLabel;
274 substituteCell =
false;
285 const face& tri = triFcs[triI];
292 addVtkVerts[0] = tri[2];
293 addVtkVerts[1] = tri[1];
294 addVtkVerts[2] = tri[0];
298 addVtkVerts[0] = tri[0];
299 addVtkVerts[1] = tri[1];
300 addVtkVerts[2] = tri[2];
302 addVtkVerts[3] = newVertexLabel;
323 const face&
f =
mesh.faces()[cFaces[cFaceI]];
330 vtkVerts[nData++] = cFaces.
size();
335 const face&
f =
mesh.faces()[cFaces[cFaceI]];
336 const bool isOwner = (owner[cFaces[cFaceI]] == cellI);
339 vtkVerts[nData++] =
f.size();
345 vtkVerts[nData++] =
f[fp];
354 vtkVerts[nData++] =
f[fp];
const cellShapeList & cellShapes
vtkTopo(const vtkTopo &)
Disallow default bitwise copy construct.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
labelList addPointCellLabels_
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static bool decomposePoly
Enable/disable polyhedron decomposition. Default = true.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or NULL.
labelList cellTypes_
Cell types (including added cells) in vtk numbering.
#define forAllReverse(list, i)
Reverse loop across all elements in list.
An analytical geometric cellShape.
const cellShapeList & cellShapes() const
Return cell shapes.
IOstream & hex(IOstream &io)
void setSize(const label)
Reset size of List.
virtual const faceList & faces() const
Return raw faces.
prefixOSstream Pout(cout, "Pout")
labelListList vertLabels_
Vertices per cell (including added cells) in vtk ordering.
A face is a list of labels corresponding to mesh vertices.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
void size(const label)
Override size to be inconsistent with allocated storage.
A cell is defined as a list of faces with extra functionality.
const cellModel & model() const
Model reference.