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
51 Info<<
"<beg> Foam::vtkPVFoam::patchVTKMesh - " << name <<
endl;
59 vtkpoints->Allocate(points.
size());
65 vtkmesh->SetPoints(vtkpoints);
70 const faceList& faces = p.localFaces();
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);
91 Info<<
"<end> Foam::vtkPVFoam::patchVTKMesh - " << name <<
endl;
#define forAll(list, i)
Loop across all elements in list.
static void printMemory()
Simple memory used debugging information.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)