35 void triSurface::writeVTK(
const bool writeSorted, Ostream& os)
const 38 os <<
"# vtk DataFile Version 2.0" << nl
39 << triSurface::typeName << 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)
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;
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)
#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.
T & operator[](const label)
Return element of UList.
void size(const label)
Override size to be inconsistent with allocated storage.
List< surfacePatch > surfacePatchList
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
vectorField pointField
pointField is a vectorField.
const Field< PointType > & points() const
Return reference to global points.
List< label > labelList
A List of labels.
const geometricSurfacePatchList & patches() const
label size() const
Return the number of elements in the UList.