Go to the documentation of this file.
41 #ifndef foam_gltf_scene_H
42 #define foam_gltf_scene_H
104 const label target = -1
135 const label animationi,
137 const label outputId,
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
scene()
Default construct.
label addField(const Type &fld, const word &name, const label target=-1)
Returns accessor index.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
label addMesh(const Type &fld, const word &name)
Returns index of last mesh.
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 meshi)
Returns accessor index.
Main class to assemble glTF components into a scene.
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))
Abstract base class for interpolation.
OBJstream os(runTime.globalPath()/outputName)
void write(Ostream &os)
Write to stream (JSON and binary data)
Container for glTF entities.
label addColourToMesh(const vectorField &fld, const word &name, const label meshi, const scalarField &alpha=scalarField())
Returns accessor index.
label createAnimation(const word &name)
Returns index of last animation.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...