| 53 | |
| 54 | |
| 55 | void Foam::fileFormats::VTKsurfaceFormatCore::writeTail |
| 56 | ( |
| 57 | Ostream& os, |
| 58 | const UList<surfZone>& zoneLst |
| 59 | ) |
| 60 | { |
| 61 | label nFaces = 0; |
| 62 | forAll(zoneLst, zoneI) |
| 63 | { |
| 64 | nFaces += zoneLst[zoneI].size(); |
| 65 | } |
| 66 | |
| 67 | // Print zone numbers |
| 68 | os << nl |
| 69 | << "CELL_DATA " << nFaces << nl |
| 70 | << "FIELD attributes 1" << nl |
| 71 | << "region 1 " << nFaces << " float" << nl; |
| 72 | |
| 73 | |
| 74 | forAll(zoneLst, zoneI) |
| 75 | { |
| 76 | forAll(zoneLst[zoneI], localFacei) |
| 77 | { |
| 78 | if (localFacei) |
| 79 | { |
| 80 | if (localFacei % 20) |
| 81 | { |
| 82 | os << ' '; |
| 83 | } |
| 84 | else |
| 85 | { |
| 86 | os << nl; |
| 87 | } |
| 88 | } |
| 89 | os << zoneI + 1; |
| 90 | } |
| 91 | os << nl; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | |
| 96 | void Foam::fileFormats::VTKsurfaceFormatCore::writeTail |
no test coverage detected