41#ifndef Foam_gltf_scene_H
42#define Foam_gltf_scene_H
96 mesh& getMesh(label meshi);
115 const label target = -1
149 const label animationi,
151 const label outputId,
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for handling file names.
Container for glTF entities.
Main class to assemble glTF components into a scene.
scene()
Default construct.
label addColourToMesh(const vectorField &fld, const word &name, const label meshId, const scalarField &alpha=scalarField::null())
Add a colour field to the mesh, optionally with an alpha channel.
label addField(const Type &fld, const word &name, const label target=-1)
Returns accessor index.
label addFieldToMesh(const Type &fld, const word &name, const label meshId)
Returns accessor index.
label createAnimation(const word &name)
Returns index of last animation.
void addToAnimation(const label animationi, const label inputId, const label outputId, const label meshId, const string &interpolation="LINEAR")
Add to existing animation.
label addMesh(const Type &fld, const word &name)
Returns index of last mesh.
Abstract base class for volume field interpolation.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.