Convert OpenFOAM patch to vtkPolyData. More...
Static Public Member Functions | |
template<class PatchType > | |
static vtkSmartPointer< vtkPoints > | points (const PatchType &p) |
Return local patch points as vtkPoints. More... | |
template<class PatchType > | |
static vtkSmartPointer< vtkCellArray > | faces (const PatchType &p) |
Convert patch faces to vtk polygon cells. More... | |
template<class PatchType > | |
static vtkSmartPointer< vtkPolyData > | mesh (const PatchType &p) |
Convert patch points/faces to vtkPolyData. More... | |
template<class PatchType > | |
static vtkSmartPointer< vtkFloatArray > | faceNormals (const PatchType &p) |
Convert patch face normals to vtkFloatArray. More... | |
template<class PatchType > | |
static vtkSmartPointer< vtkPoints > | faceCentres (const PatchType &p) |
Return patch face centres as vtkPoints. More... | |
template<class Face > | |
static vtkSmartPointer< vtkPolyData > | mesh (const UList< point > &pts, const UList< Face > &fcs) |
Convert points/faces component to vtkPolyData. More... | |
Convert OpenFOAM patch to vtkPolyData.
Definition at line 232 of file foamVtkTools.H.
|
static |
Return local patch points as vtkPoints.
Definition at line 75 of file foamVtkToolsTemplates.C.
References p, and Foam::vtk::Tools::Points().
|
static |
Convert patch faces to vtk polygon cells.
Definition at line 84 of file foamVtkToolsTemplates.C.
References Foam::vtk::Tools::Faces(), and p.
|
static |
Convert patch points/faces to vtkPolyData.
Definition at line 92 of file foamVtkToolsTemplates.C.
References Foam::New(), p, and points.
Referenced by geometryPatches::gatherPatchPieces(), and surface::gatherSurfacePieces().
|
static |
Convert patch face normals to vtkFloatArray.
Definition at line 122 of file foamVtkToolsTemplates.C.
References f(), faceId(), n, Foam::New(), and p.
|
static |
Return patch face centres as vtkPoints.
Definition at line 156 of file foamVtkToolsTemplates.C.
References f(), Foam::New(), p, and VectorSpace< Form, Cmpt, Ncmpts >::v_.
Referenced by surface::gatherFaceCentres(), and geometryPatches::gatherPatchFaceCentres().
|
static |
Convert points/faces component to vtkPolyData.
Definition at line 106 of file foamVtkToolsTemplates.C.
References Foam::vtk::Tools::Faces(), Foam::New(), and Foam::vtk::Tools::Points().