mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: triSurface: unstructured ascii vtk reading
This commit is contained in:
@ -25,7 +25,8 @@ Class
|
||||
Foam::vtkUnstructuredReader
|
||||
|
||||
Description
|
||||
Reader for vtk unstructured legacy files
|
||||
Reader for vtk unstructured legacy files. Supports single CELLS, POINTS
|
||||
etc. entry only.
|
||||
|
||||
SourceFiles
|
||||
vtkUnstructuredReader.C
|
||||
@ -45,9 +46,6 @@ SourceFiles
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// Forward declaration of friend functions and operators
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class vtkUnstructuredReader Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -137,12 +135,20 @@ private:
|
||||
//- 3D cells.
|
||||
cellShapeList cells_;
|
||||
|
||||
//- Map from cells back to original ID
|
||||
labelList cellMap_;
|
||||
|
||||
//- 2D cells (=faces)
|
||||
faceList faces_;
|
||||
|
||||
//- Map from faces back to original ID
|
||||
labelList faceMap_;
|
||||
|
||||
//- 1D cells (=edges)
|
||||
labelListList lines_;
|
||||
|
||||
labelList lineMap_;
|
||||
|
||||
|
||||
// Data
|
||||
|
||||
@ -258,6 +264,11 @@ public:
|
||||
return cells_;
|
||||
}
|
||||
|
||||
const labelList& cellMap() const
|
||||
{
|
||||
return cellMap_;
|
||||
}
|
||||
|
||||
//- 2D cells (=faces)
|
||||
const faceList& faces() const
|
||||
{
|
||||
@ -269,6 +280,11 @@ public:
|
||||
return faces_;
|
||||
}
|
||||
|
||||
const labelList& faceMap() const
|
||||
{
|
||||
return faceMap_;
|
||||
}
|
||||
|
||||
//- 1D cells (=open lines)
|
||||
const labelListList& lines() const
|
||||
{
|
||||
@ -280,6 +296,11 @@ public:
|
||||
return lines_;
|
||||
}
|
||||
|
||||
const labelList& lineMap() const
|
||||
{
|
||||
return lineMap_;
|
||||
}
|
||||
|
||||
//- cell based fields
|
||||
const objectRegistry& cellData() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user