ENH: provide xferFaces mechanism for triSurface for symmetry with MeshedSurface

This commit is contained in:
Mark Olesen 2017-03-09 13:56:54 +01:00
parent 10fc0646fb
commit 9faf186b9f
2 changed files with 13 additions and 0 deletions

View File

@ -918,6 +918,16 @@ void Foam::triSurface::triFaceFaces(List<face>& plainFaces) const
}
Foam::Xfer<Foam::List<Foam::labelledTri>>
Foam::triSurface::xferFaces()
{
// Topology changed because of transfer
clearOut();
return this->storedFaces().xfer();
}
Foam::Xfer<Foam::List<Foam::point>>
Foam::triSurface::xferPoints()
{

View File

@ -431,6 +431,9 @@ public:
) const;
//- Transfer stored faces to an Xfer container
Xfer<List<labelledTri>> xferFaces();
//- Transfer stored points to an Xfer container
Xfer<List<point>> xferPoints();