MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writePoints

Function writePoints

src/fileFormats/starcd/STARCDCore.C:137–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137void 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

Callers 2

writeFunction · 0.50

Calls 8

precisionMethod · 0.80
setfMethod · 0.80
flushMethod · 0.80
writeHeaderFunction · 0.70
forAllFunction · 0.50
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected