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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static void printMemory()
Simple memory used debugging information.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
PrimitivePatch< List< face >, const pointField & > primitiveFacePatch
Foam::primitiveFacePatch.
#define InfoInFunction
Report an information message using Foam::Info.