40 void triSurface::writeOBJ(
const bool writeSorted, Ostream& os)
const
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();
91 const label faceI = faceMap[faceIndex++];