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();
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
virtual bool write()
Write the output fields.
Base class for glTF entities.
void addColour(const label accessorId)
Add a colour to the mesh.
label & accessorId() noexcept
Return the accessor ID.
void addField(const word &name, const label accessorId)
Add a field to the mesh.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
constexpr char nl
The newline '\n' character (0x0a)