Go to the documentation of this file.
40 const UList<point>& pts,
48 for (label fp1 = 1; fp1 <
f.size() - 1; ++fp1)
50 const label fp2 =
f.fcIndex(fp1);
52 const point& p1 = pts[
f[fp1]];
53 const point& p2 = pts[
f[fp2]];
55 os <<
p0.x() <<
' ' <<
p0.y() <<
' ' <<
p0.z() <<
' '
56 << p1.x() <<
' ' << p1.y() <<
' ' << p1.z() <<
' '
57 << p2.x() <<
' ' << p2.y() <<
' ' << p2.z() <<
' '
59 <<
"0x" <<
hex << zoneI <<
dec <<
nl;
94 const auto& readpts = reader.
points();
98 pointLst.setSize(nUniquePoints);
101 pointLst[pointMap[pointi]] = readpts[pointi];
116 const label startPt = 3*facei;
117 faceLst[facei] = Face
134 const label startPt = 3*
faceMap[facei];
135 faceLst[facei] = Face
146 this->storedFaces().transfer(faceLst);
148 this->addZones(sizes);
149 this->addZonesToFaces();
165 streamOpt.
format(IOstream::ASCII);
174 ? surfaceFormatsCore::oneZone(faceLst)
178 const bool useFaceMap = (surf.
useFaceMap() && zones.size() > 1);
184 <<
"Cannot write file " << filename <<
nl
192 for (label nLocal =
zone.size(); nLocal--; ++faceIndex)
195 (useFaceMap ?
faceMap[faceIndex] : faceIndex);
197 const Face&
f = faceLst[facei];
199 writeShell(
os, pointLst,
f, zoneIndex);
217 streamOpt.
format(IOstream::ASCII);
226 <<
"Cannot write file " << filename <<
nl
231 if (surf.
zoneToc().size() == 1)
233 const UList<label>& zoneIds = surf.
zoneIds();
237 writeShell(
os, pointLst, faceLst[facei], zoneIds[facei]);
248 for (
const surfZone& zone : zoneLst)
250 for (label nLocal = zone.size(); nLocal--; ++faceIndex)
252 const label facei =
faceMap[faceIndex];
254 const Face&
f = faceLst[facei];
256 writeShell(
os, pointLst,
f, zoneIndex);
List< label > labelList
A List of labels.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling file names.
Base class for mesh zones.
streamFormat format() const noexcept
const pointField & points() const
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
const labelUList & faceMap() const
virtual const labelList & zoneIds() const
Generic templated field type.
IOstream & dec(IOstream &io)
The IOstreamOption is a simple container for options an IOstream can normally have.
const List< surfZoneIdentifier > & zoneToc() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Output to file stream, using an OSstream.
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A surface zone on a MeshedSurface.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Various functions to operate on Lists.
labelList sortedOrder(const UList< T > &input)
const UList< Face > & surfFaces() const
const volScalarField & p0
vector point
Point is a vector.
surfZoneList sortedZones(labelList &faceMap) const
const UList< surfZone > & surfZones() const