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,
A class for handling file names.
void addToAnimation(const label animationi, const label inputId, const label outputId, const label meshId, const string &interpolation="LINEAR")
Add to existing animation.
label addFieldToMesh(const Type &fld, const word &name, const label meshId)
Returns accessor index.
label addMesh(const Type &fld, const word &name)
Returns index of last mesh.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
label createAnimation(const word &name)
Returns index of last animation.
scene()
Default construct.
A class for handling words, derived from Foam::string.
Main class to assemble glTF components into a scene.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
label addField(const Type &fld, const word &name, const label target=-1)
Returns accessor index.
static const Field< scalar > & null()
Return nullObject reference Field.
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.
Abstract base class for volume field interpolation.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Container for glTF entities.
void write(const fileName &outputFile)
Write to file pair (.gltf, .bin)