42 const point& p0 = pointLst[f[0]];
43 for (label fp1 = 1; fp1 < f.size() - 1; ++fp1)
45 label fp2 = f.fcIndex(fp1);
47 const point& p1 = pointLst[f[fp1]];
48 const point& p2 = pointLst[f[fp2]];
50 os << p0.
x() <<
' ' << p0.y() <<
' ' << p0.z() <<
' '
51 << p1.x() <<
' ' << p1.y() <<
' ' << p1.z() <<
' '
52 << p2.x() <<
' ' << p2.y() <<
' ' << p2.z() <<
' '
85 this->storedPoints().transfer(reader.
points());
99 const label startPt = 3*faceI;
100 faceLst[faceI] =
triFace(startPt, startPt+1, startPt+2);
113 const label startPt = 3*faceMap[faceI];
114 faceLst[faceI] =
triFace(startPt, startPt+1, startPt+2);
120 this->storedFaces().transfer(faceLst);
122 this->addZones(sizes);
123 this->stitchFaces(SMALL);
153 "fileFormats::TRIsurfaceFormat::write"
154 "(const fileName&, const MeshedSurfaceProxy<Face>&)"
156 <<
"Cannot open file for writing " << filename
163 const surfZone& zone = zones[zoneI];
169 const Face& f = faceLst[faceMap[faceIndex++]];
170 writeShell(os, pointLst, f, zoneI);
177 const Face& f = faceLst[faceIndex++];
178 writeShell(os, pointLst, f, zoneI);
200 "fileFormats::TRIsurfaceFormat::write"
201 "(const fileName&, const UnsortedMeshedSurface<Face>&)"
203 <<
"Cannot open file for writing " << filename
209 if (surf.
zoneToc().size() == 1)
215 writeShell(os, pointLst, faceLst[faceI], zoneIds[faceI]);
226 forAll(zoneLst[zoneI], localFaceI)
228 const Face& f = faceLst[faceMap[faceIndex++]];
229 writeShell(os, pointLst, f, zoneI);