Go to the documentation of this file.
31 #include "vtkOpenFOAMPoints.H"
34 #include "vtkPoints.h"
35 #include "vtkPolyData.h"
36 #include "vtkCellArray.h"
50 Info<<
"<beg> Foam::vtkPV3Foam::faceSetVTKMesh" <<
endl;
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);
103 Info<<
"<end> Foam::vtkPV3Foam::faceSetVTKMesh" <<
endl;
121 Info<<
"<beg> Foam::vtkPV3Foam::pointSetVTKMesh" <<
endl;
128 vtkpoints->Allocate(pSet.size());
135 vtkmesh->SetPoints(vtkpoints);
140 Info<<
"<end> Foam::vtkPV3Foam::pointSetVTKMesh" <<
endl;
vectorField pointField
pointField is a vectorField.
virtual const pointField & points() const
Return raw points.
vtkPolyData * faceSetVTKMesh(const fvMesh &, const faceSet &)
Add face set mesh.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
#define forAll(list, i)
Loop across all elements in list.
void vtkInsertNextOpenFOAMPoint(vtkPoints *points, const Foam::point &p)
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList patchFaces(const polyBoundaryMesh &patches, const wordList &names)
PrimitivePatch< face, List, const pointField & > primitiveFacePatch
Foam::primitiveFacePatch.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
vtkPolyData * pointSetVTKMesh(const fvMesh &, const pointSet &)
Add point mesh.
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.