40 void triSurface::writeOBJ(
const bool writeSorted, Ostream& os)
const 43 os <<
"# Wavefront OBJ file" << nl
44 <<
"# Regions:" <<
nl;
55 os <<
"# " <<
patchi <<
" " 60 os <<
"# points : " << ps.size() << nl
61 <<
"# triangles : " <<
size() << nl
69 << ps[pointi].x() <<
' ' 70 << ps[pointi].y() <<
' ' 71 << ps[pointi].z() <<
nl;
91 const label facei = faceMap[faceIndex++];
112 patchIDs[faceMap[facei++]] =
patchi;
117 label prevPatchi = -1;
121 if (prevPatchi != patchIDs[facei])
123 prevPatchi = patchIDs[facei];
124 os <<
"g " <<
patches[patchIDs[facei]].name() <<
nl;
#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.