Go to the documentation of this file.
31 #include "triSurface.H"
43 os <<
"# Wavefront OBJ file" <<
endl
44 <<
"# Regions:" <<
endl;
55 os <<
"# " << patchI <<
" "
56 << myPatches[patchI].name() <<
endl;
60 os <<
"# points : " << ps.size() <<
endl
61 <<
"# triangles : " <<
size() <<
endl
69 << ps[pointi].x() <<
' '
70 << ps[pointi].y() <<
' '
71 << ps[pointi].z() <<
endl;
82 os <<
"g " << myPatches[patchI].name() <<
endl;
87 patchFaceI < myPatches[patchI].
size();
94 << operator[](faceI)[0] + 1 <<
' '
95 << operator[](faceI)[1] + 1 <<
' '
96 << operator[](faceI)[2] + 1
107 << operator[](faceI)[0] + 1 <<
' '
108 << operator[](faceI)[1] + 1 <<
' '
109 << operator[](faceI)[2] + 1
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.
#define forAll(list, i)
Loop across all elements in list.
void writeOBJ(const bool writeSorted, Ostream &) const
Write to Ostream in OBJ (Lightwave) format.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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,...