38 os <<
"# vtk DataFile Version 2.0" <<
nl 39 <<
"surface written " << clock::dateTime().c_str() <<
nl 42 <<
"DATASET POLYDATA" <<
nl;
45 os <<
"POINTS " << pointLst.
size() <<
" float" <<
nl;
48 const point& pt = pointLst[ptI];
50 os << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
nl;
64 nFaces += zoneLst[zoneI].
size();
69 <<
"CELL_DATA " << nFaces <<
nl 70 <<
"FIELD attributes 1" <<
nl 71 <<
"region 1 " << nFaces <<
" float" <<
nl;
76 forAll(zoneLst[zoneI], localFacei)
104 <<
"CELL_DATA " << zoneIds.
size() <<
nl 105 <<
"FIELD attributes 1" <<
nl 106 <<
"region 1 " << zoneIds.
size() <<
" float" <<
nl;
121 os << zoneIds[facei] + 1;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label size() const
Return the number of elements in the UList.