35 void triSurface::writeGTS(
const bool writeSorted, Ostream& os)
const 38 os <<
"# GTS file" << endl
39 <<
"# Regions:" <<
endl;
48 os <<
"# " <<
patchi <<
" " 56 os <<
"# nPoints nEdges nTriangles" << endl
63 os << ps[pointi].x() <<
' ' 64 << ps[pointi].y() <<
' ' 65 << ps[pointi].z() <<
endl;
75 os << meshPts[es[edgei].start()] + 1 <<
' ' 76 << meshPts[es[edgei].end()] + 1 <<
endl;
94 const label facei = faceMap[faceIndex++];
98 os << fEdges[0] + 1 <<
' ' 99 << fEdges[1] + 1 <<
' ' 100 << fEdges[2] + 1 <<
' ' 101 << (*this)[facei].region() <<
endl;
111 os << fEdges[0] + 1 <<
' ' 112 << fEdges[1] + 1 <<
' ' 113 << fEdges[2] + 1 <<
' ' 114 << (*this)[facei].region() <<
endl;
List< labelList > labelListList
A List of labelList.
#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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< surfacePatch > surfacePatchList
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
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.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
List< label > labelList
A List of labels.
label nEdges() const
Return number of edges in patch.
const geometricSurfacePatchList & patches() const
const labelListList & faceEdges() const
Return face-edge addressing.
label size() const
Return the number of elements in the UList.