Go to the documentation of this file.
43 const labelUList& addPoints = this->additionalIds();
45 vtkpoints->SetNumberOfPoints(pts.size() + addPoints.
size());
48 vtkIdType pointId = 0;
51 vtkpoints->SetPoint(pointId++,
p.v_);
55 for (
const label meshCelli : addPoints)
57 vtkpoints->SetPoint(pointId++,
mesh.cellCentres()[meshCelli].v_);
78 const labelUList& addPoints = this->additionalIds();
80 vtkpoints->SetNumberOfPoints(pointMap.
size() + addPoints.
size());
83 vtkIdType pointId = 0;
84 for (
const label meshPointi : pointMap)
86 vtkpoints->SetPoint(pointId++, pts[meshPointi].v_);
90 for (
const label meshCelli : addPoints)
92 vtkpoints->SetPoint(pointId++,
mesh.cellCentres()[meshCelli].v_);
103 const bool decompPoly
131 sizing.
sizeInternal(vtk::vtuSizing::slotType::CELLS_OFFSETS)
145 sizing.
sizeInternal(vtk::vtuSizing::slotType::FACES_OFFSETS)
165 vtkmesh->SetPoints(this->
points(mesh));
vtkSmartPointer< vtkPoints > points(const fvMesh &mesh) const
The vtk points for the mesh (and decomposition)
label nFieldCells() const
Number of field cells = nCells + nAddCells.
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 populateInternal(const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< int > &connectivity, UList< int > &offsets, UList< int > &faces, UList< int > &facesOffsets, foamVtkMeshMaps &maps) const
Populate lists for Internal VTK format.
Mesh data needed to do the Finite Volume discretisation.
Sizing descriptions and routines for transcribing an OpenFOAM volume mesh into a VTK unstructured gri...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const labelList & cellTypes
label sizeInternal(const enum slotType slot) const
The calculated size for vtk-internal storage of the specified slot.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
Bookkeeping for mesh subsetting and/or polyhedral cell decomposition. Although the main use case is f...
vtkSmartPointer< vtkUnstructuredGrid > internal(const fvMesh &mesh, const bool decompPoly=false)
Internal mesh as vtkUnstructuredGrid.