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;
85 if (faceIndex > 0 && (faceIndex % 10) == 0)
107 os <<
"CELL_DATA " <<
size() <<
nl;
108 os <<
"FIELD attributes 1" <<
nl;
109 os <<
"region 1 " <<
size() <<
" float" <<
nl;
117 label patchFacei = 0;
122 if (faceIndex > 0 && (faceIndex % 10) == 0)
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)
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
const Field< PointType > & points() const
Return reference to global points.
T & operator[](const label)
Return element of UList.
label size() const
Return size.
const geometricSurfacePatchList & patches() const
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
vectorField pointField
pointField is a vectorField.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< surfacePatch > surfacePatchList