ENH: only use point/face/mesh references where needed in ensightPart*

- add points/faces constructor to ensightPartFaces with optional
  contiguousPoints flag.

- Remove the now redundantensightPartNonMeshFaces class.
This commit is contained in:
Mark Olesen
2011-01-26 13:45:17 +01:00
parent 51df389de6
commit 0498967cc6
19 changed files with 317 additions and 562 deletions

View File

@ -28,8 +28,7 @@ License
#include "OFstream.H"
#include "OSspecific.H"
#include "IOmanip.H"
#include "ensightGeoFile.H"
#include "ensightPartNonMeshFaces.H"
#include "ensightPartFaces.H"
#include "makeSurfaceWriterMethods.H"
@ -153,7 +152,7 @@ void Foam::ensightSurfaceWriter::writeTemplate
<< timeValue << nl
<< nl;
ensightPartNonMeshFaces ensPart(0, geomStr.name().name(), faces, points);
ensightPartFaces ensPart(0, geomStr.name().name(), points, faces, true);
geomStr << ensPart;
// Write field
@ -252,7 +251,7 @@ void Foam::ensightSurfaceWriter::write
<< timeValue << nl
<< nl;
ensightPartNonMeshFaces ensPart(0, geomStr.name().name(), faces, points);
ensightPartFaces ensPart(0, geomStr.name().name(), points, faces, true);
geomStr << ensPart;
}