ENH: triSurface: unstructured ascii vtk reading

This commit is contained in:
mattijs
2012-03-05 14:13:31 +00:00
parent 5242bcf9b8
commit f0d680d4c0
10 changed files with 235 additions and 12 deletions

View File

@ -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
{