27 #include "vtkOpenFOAMPoints.H"
35 #include "vtkPoints.h"
36 #include "vtkPolyData.h"
37 #include "vtkCellArray.h"
41 vtkPolyData* Foam::vtkPVFoam::faceSetVTKMesh
55 patchFaces[facei++] = meshFaces[iter.key()];
65 vtkpoints->Allocate(
points.size());
70 vtkmesh->SetPoints(vtkpoints);
77 vtkcells->Allocate(faces.size());
79 DynamicList<vtkIdType> nodeIds(4);
83 const face&
f = faces[facei];
85 nodeIds.resize(
f.size());
91 vtkcells->InsertNextCell(
f.size(), nodeIds.data());
94 vtkmesh->SetPolys(vtkcells);
101 vtkPolyData* Foam::vtkPVFoam::pointSetVTKMesh
112 vtkpoints->Allocate(pSet.size());
119 vtkmesh->SetPoints(vtkpoints);
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
virtual const faceList & faces() const
Return raw faces.
virtual const pointField & points() const
Return raw points.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
vectorField pointField
pointField is a vectorField.
PrimitivePatch< List< face >, const pointField & > primitiveFacePatch
Foam::primitiveFacePatch.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)