| 135 | |
| 136 | |
| 137 | void Foam::fileFormats::STARCDCore::writePoints |
| 138 | ( |
| 139 | Ostream& os, |
| 140 | const pointField& pointLst |
| 141 | ) |
| 142 | { |
| 143 | writeHeader(os, "VERTEX"); |
| 144 | |
| 145 | // Set the precision of the points data to 10 |
| 146 | os.precision(10); |
| 147 | |
| 148 | // force decimal point for Fortran input |
| 149 | os.setf(std::ios::showpoint); |
| 150 | |
| 151 | forAll(pointLst, ptI) |
| 152 | { |
| 153 | os |
| 154 | << ptI + 1 << " " |
| 155 | << pointLst[ptI].x() << " " |
| 156 | << pointLst[ptI].y() << " " |
| 157 | << pointLst[ptI].z() << nl; |
| 158 | } |
| 159 | os.flush(); |
| 160 | } |
| 161 | |
| 162 | |
| 163 |