31 #include "vtkOpenFOAMPoints.H"
34 #include "vtkPoints.h"
35 #include "vtkPolyData.h"
36 #include "vtkCellArray.h"
40 vtkPolyData* Foam::vtkPVFoam::faceSetVTKMesh
56 const faceList& meshFaces = mesh.faces();
61 patchFaces[facei++] = meshFaces[iter.key()];
72 vtkpoints->Allocate(
points.size());
77 vtkmesh->SetPoints(vtkpoints);
84 vtkcells->Allocate(faces.size());
88 const face&
f = faces[facei];
89 vtkIdType nodeIds[
f.size()];
95 vtkcells->InsertNextCell(
f.size(), nodeIds);
98 vtkmesh->SetPolys(vtkcells);
110 vtkPolyData* Foam::vtkPVFoam::pointSetVTKMesh
127 vtkpoints->Allocate(pSet.size());
134 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.
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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
PrimitivePatch< List< face >, const pointField & > primitiveFacePatch
Foam::primitiveFacePatch.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)