Skip to content

BUG: triSurface IO operators are asymmetrical

Also reported as http://bugs.openfoam.org/view.php?id=2188

The operator<<(Ostream&, const triSurface&) writes patches, points, faces.

However, the operator>>(Istream&, triSurface&) does not exist, and it resolves to operator>>(Istream&, List&) via the PrimitivePatch parent. This operator only reads faces.

The simple change would be to add an operator>>(Istream&, triSurface&) that delegates to the triSurface::read(Istream&) method.

@Mattijs