81 <<
indent <<
"\"POSITION\" : " << accessorId_;
83 for (
const auto&
f : fields_)
85 os <<
"," <<
nl <<
indent <<
f.first() <<
" : " <<
f.second();
88 for (
const auto&
c : colours_)
90 os <<
"," <<
nl <<
indent <<
c.first() <<
" : " <<
c.second();
Ostream & indent(Ostream &os)
Indent stream.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
void write(Ostream &os) const
Write.
constexpr char nl
The newline '\n' character (0x0a)
void addColour(const label accessorId)
Add a colour to the mesh.
void write(Ostream &os) const
Write.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
void addField(const word &name, const label accessorId)
Add a field to the mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Base class for glTF entities.
label & accessorId() noexcept
Return the accessor ID.
const dimensionedScalar c
Speed of light in a vacuum.
Ostream & incrIndent(Ostream &os)
Increment the indent level.