31 #include "vtkOpenFOAMPoints.H"
34 #include "vtkCellArray.h"
35 #include "vtkPoints.h"
36 #include "vtkPolyData.h"
40 template<
class PatchType>
41 vtkPolyData* Foam::vtkPVFoam::patchVTKMesh
59 vtkpoints->Allocate(
points.size());
65 vtkmesh->SetPoints(vtkpoints);
73 vtkcells->Allocate(faces.size());
76 const face&
f = faces[facei];
77 vtkIdType nodeIds[
f.size()];
83 vtkcells->InsertNextCell(
f.size(), nodeIds);
86 vtkmesh->SetPolys(vtkcells);
#define forAll(list, i)
Loop across all elements in list.
static void printMemory()
Simple memory used debugging information.
#define InfoInFunction
Report an information message using Foam::Info.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)