sampledSurface: Added support for writing surfaces in binary format

by specifying

    writeFormat binary;

in the sampledSurface dictionary.
This commit is contained in:
Henry Weller
2020-01-29 12:42:05 +00:00
parent 3631f13a98
commit 84759ee0b8
23 changed files with 154 additions and 88 deletions

View File

@ -286,7 +286,10 @@ Foam::tmp<Foam::triSurfacePointScalarField> Foam::automatic::load()
faces[fI] = surface_.triSurface::operator[](fI).triFaceFace();
}
vtkSurfaceWriter().write
vtkSurfaceWriter
(
surface_.searchableSurface::time().writeFormat()
).write
(
surface_.searchableSurface::time().constant()/"triSurface",
surfaceName_.lessExt().name(),