ENH: use meshedSurf API for surface writers (issue #104)

- Allows passing of additional information (per-face zone ids) or possibly
  other things, while reducing the number of arguments to pass.

- In sampledTriSurfaceMesh, preserve the region information that was
  read in, passing it onwards via the UnsortedMeshSurface content.

  The Nastran surface writer is currently the only writer making use
  of this per-face zone information.
  Passing it through as a PSHELL attribute, which should retain the
  distinction for parts. (issue #204)
This commit is contained in:
Mark Olesen
2016-08-10 15:41:24 +02:00
parent eee0dd02c5
commit 1fc2a73213
58 changed files with 456 additions and 399 deletions

View File

@ -290,12 +290,16 @@ Foam::scalar surfaceNoise::writeSurfaceData
}
}
// could also have meshedSurface implement meshedSurf
fileName outFileName = writerPtr_->write
(
outDir,
fName,
surf.points(),
surf.surfFaces(),
meshedSurfRef
(
surf.points(),
surf.surfFaces()
),
title,
allData,
false
@ -313,12 +317,16 @@ Foam::scalar surfaceNoise::writeSurfaceData
{
const meshedSurface& surf = readerPtr_->geometry();
// could also have meshedSurface implement meshedSurf
writerPtr_->write
(
outDir,
fName,
surf.points(),
surf.surfFaces(),
meshedSurfRef
(
surf.points(),
surf.surfFaces()
),
title,
data,
false