MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writeAndCheck

Function writeAndCheck

src/surfMesh/surfaceFormats/obj/OBJstream.C:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
39
40void Foam::OBJstream::writeAndCheck(const char c)
41{
42 if (c == '\n')
43 {
44 startOfLine_ = true;
45 }
46 else if (startOfLine_)
47 {
48 startOfLine_ = false;
49 if (c == 'v')
50 {
51 nVertices_++;
52 }
53 }
54 OFstream::write(c);
55}
56
57
58// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 1

OBJstream.CFile · 0.85

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected