Patch Struct Reference

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...
 

Detailed Description

Convert OpenFOAM patch to vtkPolyData.

Definition at line 221 of file foamVtkTools.H.

Member Function Documentation

◆ points()

vtkSmartPointer< vtkPoints > points ( const PatchType &  p)
static

Return local patch points as vtkPoints.

Definition at line 144 of file foamVtkToolsTemplates.C.

References p, and Foam::vtk::Tools::Points().

Here is the call graph for this function:

◆ faces()

vtkSmartPointer< vtkCellArray > faces ( const PatchType &  p)
static

Convert patch faces to vtk polygon cells.

Definition at line 153 of file foamVtkToolsTemplates.C.

References Foam::vtk::Tools::Faces(), and p.

Here is the call graph for this function:

◆ mesh() [1/2]

vtkSmartPointer< vtkPolyData > mesh ( const PatchType &  p)
static

Convert patch points/faces to vtkPolyData.

Definition at line 161 of file foamVtkToolsTemplates.C.

References p, and points.

◆ faceNormals()

vtkSmartPointer< vtkFloatArray > faceNormals ( const PatchType &  p)
static

Convert patch face normals to vtkFloatArray.

Definition at line 191 of file foamVtkToolsTemplates.C.

References f(), faceId(), n, and p.

Here is the call graph for this function:

◆ faceCentres()

vtkSmartPointer< vtkPoints > faceCentres ( const PatchType &  p)
static

Return patch face centres as vtkPoints.

Definition at line 225 of file foamVtkToolsTemplates.C.

References f(), p, and VectorSpace< Form, Cmpt, Ncmpts >::v_.

Here is the call graph for this function:

◆ mesh() [2/2]

vtkSmartPointer< vtkPolyData > mesh ( const UList< point > &  pts,
const UList< Face > &  fcs 
)
static

Convert points/faces component to vtkPolyData.

Definition at line 174 of file foamVtkToolsTemplates.C.

References Foam::vtk::Tools::Faces(), and Foam::vtk::Tools::Points().

Here is the call graph for this function:

The documentation for this struct was generated from the following files: