41 #ifndef foam_gltf_accessor_H 42 #define foam_gltf_accessor_H 145 void set(const
Field<Type>&
fld,
bool calcMinMax = true);
label byteOffset_
Byte offset.
label bufferViewId_
Buffer view index.
static string toString(const Type &val)
Stringify the value.
label & count() noexcept
Return the data size.
Generic templated field type.
A class for handling words, derived from Foam::string.
label componentType_
Component type.
label & bufferViewId() noexcept
Return the buffer view index.
label & componentType() noexcept
Return the component type.
static string getValueType()
Return the glTF value type for the given OpenFOAM type.
~accessor()=default
Destructor.
const word & name() const noexcept
Return const access to the name.
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))
bool minMax_
Flag to indicate whether min and max values are available.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void set(const Field< Type > &fld, bool calcMinMax=true)
Set the accessor.
string & type() noexcept
Return the type.
Base class for glTF entities.
accessor()
Default construct.
void write(Ostream &os) const
Write.
string min_
Min value. Note: stored as a string for convenience.
label & byteOffset() noexcept
Return the byte offset.
string max_
Max value. Note: stored as a string for convenience.