Go to the documentation of this file.
26 #include "triSurface.H"
38 os <<
"# GTS file" <<
endl
39 <<
"# Regions:" <<
endl;
48 os <<
"# " << patchI <<
" "
49 << myPatches[patchI].name() <<
endl;
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;
90 patchFaceI < myPatches[patchI].
size();
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;
void writeGTS(const bool writeSorted, Ostream &) const
Write to Ostream in GTS (Gnu Tri Surface library)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const Field< point > & points() const
Return reference to global points.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
#define forAll(list, i)
Loop across all elements in list.
label nEdges() const
Return number of edges in patch.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelListList & faceEdges() const
Return face-edge addressing.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
label size() const
Return the number of elements in the UList.
surfacePatchList calcPatches(labelList &faceMap) const
Sort faces according to region. Returns patch list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const labelList & meshPoints() const
Return labelList of mesh points in patch.