27 #include "vtkOpenFOAMPoints.H"
34 #include "vtkCellArray.h"
35 #include "vtkPoints.h"
36 #include "vtkPolyData.h"
40 template<
class PatchType>
41 vtkPolyData* Foam::vtkPVFoam::patchVTKMesh(
const PatchType&
p)
49 vtkpoints->Allocate(
points.size());
55 vtkmesh->SetPoints(vtkpoints);
62 vtkcells->Allocate(faces.size());
64 DynamicList<vtkIdType> nodeIds(4);
68 const face&
f = faces[facei];
70 nodeIds.resize(
f.size());
76 vtkcells->InsertNextCell(
f.size(), nodeIds.data());
79 vtkmesh->SetPolys(vtkcells);
#define forAll(list, i)
Loop across all elements in list.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)