Go to the documentation of this file.
28 #include "primitivePatch.H"
91 for (
const char*
p = str; *
p !=
'\0'; ++
p)
111 for (string::const_iterator iter = str.begin(); iter != str.end(); ++iter)
151 const std::string& str,
162 string::const_iterator iter = str.begin();
211 write(
"v ") << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z()
221 <<
' ' <<
n.z() <<
nl;
230 write(
"l ") << nVertices_-1 <<
' ' << nVertices_ <<
nl;
239 write(
"l ") << nVertices_-1 <<
' ' << nVertices_ <<
nl;
253 write(
"l ") << nVertices_-1 <<
' ' << nVertices_ <<
nl;
264 label start = nVertices_;
271 for (
int i = 0; i < 3; i++)
273 write(
' ') << start+1+i;
275 write(
' ') << start+1 <<
'\n';
280 for (
int i = 0; i < 3; i++)
282 write(
' ') << start+1+i;
297 label start = nVertices_;
307 write(
' ') << start+1+i;
309 write(
' ') << start+1 <<
'\n';
316 write(
' ') << start+1+i;
338 label start = nVertices_;
342 write(localPoints[i]);
350 const edge&
e = edges[edgeI];
352 write(
"l ") << start+
e[0]+1 <<
' ' << start+
e[1]+1 <<
nl;
359 const face&
f = localFaces[faceI];
363 write(
' ') << start+
f[i]+1;
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string surrounded by quotes.
word format(conversionProperties.lookup("format"))
A class for handling words, derived from string.
A class for handling file names.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)
Write character.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
A List obtained as a section of another List.
compressionType
Enumeration for the format of data in the stream.
void writeAndCheck(const char)
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
virtual Ostream & write(const token &)
Write next token to stream.
A triangle primitive used to calculate face normals and swept volumes.
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.
OBJstream(const fileName &pathname, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Construct from pathname.
const double e
Elementary charge.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const dimensionedScalar c
Speed of light in a vacuum.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
A face is a list of labels corresponding to mesh vertices.
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,...
defineTypeNameAndDebug(combustionModel, 0)
A list of faces which address into the list of points.
streamFormat
Enumeration for the format of data in the stream.