35 void triSurface::writeVTK(
const bool writeSorted, Ostream& os)
const
38 os <<
"# vtk DataFile Version 2.0" <<
nl
46 os <<
"POINTS " << ps.size() <<
" float" <<
nl;
51 if (pointi > 0 && (pointi % 10) == 0)
59 os << ps[pointi].x() <<
' '
60 << ps[pointi].y() <<
' '
65 os <<
"POLYGONS " <<
size() <<
' ' << 4*
size() <<
nl;
81 patchFaceI < myPatches[patchI].size();
85 if (faceIndex > 0 && (faceIndex % 10) == 0)
94 const label faceI = faceMap[faceIndex++];
107 os <<
"CELL_DATA " <<
size() <<
nl;
108 os <<
"FIELD attributes 1" <<
nl;
109 os <<
"region 1 " <<
size() <<
" float" <<
nl;
117 label patchFaceI = 0;
118 patchFaceI < myPatches[patchI].size();
122 if (faceIndex > 0 && (faceIndex % 10) == 0)
131 const label faceI = faceMap[faceIndex++];
142 if (faceI > 0 && (faceI % 10) == 0)
157 os <<
"CELL_DATA " <<
size() <<
nl;
158 os <<
"FIELD attributes 1" <<
nl;
159 os <<
"region 1 " <<
size() <<
" float" <<
nl;
163 if (faceI > 0 && (faceI % 10) == 0)