31 #include "vtkOpenFOAMPoints.H" 34 #include "vtkPoints.h" 35 #include "vtkPolyData.h" 36 #include "vtkCellArray.h" 40 vtkPolyData* Foam::vtkPVFoam::faceSetVTKMesh
50 Info<<
"<beg> Foam::vtkPVFoam::faceSetVTKMesh" <<
endl;
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);
103 Info<<
"<end> Foam::vtkPVFoam::faceSetVTKMesh" <<
endl;
111 vtkPolyData* Foam::vtkPVFoam::pointSetVTKMesh
121 Info<<
"<beg> Foam::vtkPVFoam::pointSetVTKMesh" <<
endl;
128 vtkpoints->Allocate(pSet.size());
135 vtkmesh->SetPoints(vtkpoints);
140 Info<<
"<end> Foam::vtkPVFoam::pointSetVTKMesh" <<
endl;
#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.
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)
vectorField pointField
pointField is a vectorField.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
PrimitivePatch< face, List, const pointField & > primitiveFacePatch
Foam::primitiveFacePatch.