35 void triSurface::writeOFF(
const bool writeSorted, Ostream& os)
const
39 <<
"# Geomview OFF file" <<
endl
40 <<
"# Regions:" <<
endl;
48 os <<
"# " <<
patchi <<
" "
55 os <<
"# nPoints nTriangles nEdges" <<
endl
64 os << ps[pointi].x() <<
' '
65 << ps[pointi].y() <<
' '
66 << ps[pointi].z() <<
" #" << pointi <<
endl;
#define forAll(list, i)
Loop across all elements in list.
label size() const
Return the number of elements in the UList.
void size(const label)
Override size to be inconsistent with allocated storage.
label nEdges() const
Return number of edges in patch.
const Field< PointType > & points() const
Return reference to global points.
T & operator[](const label)
Return element of UList.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< surfacePatch > surfacePatchList