Loading...
Searching...
No Matches
mesh Class Reference

glTF mesh More...

#include <foamGltfMesh.H>

Inheritance diagram for mesh:
Collaboration diagram for mesh:

Public Member Functions

 mesh ()
 Default construct.
 mesh (const word &name)
 Construct from name.
 ~mesh ()=default
 Destructor.
label & accessorId () noexcept
 Return the accessor ID.
void addField (const word &name, const label accessorId)
 Add a field to the mesh.
void addColour (const label accessorId)
 Add a colour to the mesh.
void write (Ostream &os) const
 Write.
Public Member Functions inherited from base
 base ()
 Default construct.
 base (const word &name)
 Construct with name.
 ~base ()=default
 Destructor.
label & id () noexcept
 Return access to the ID.
const wordname () const noexcept
 Return const access to the name.
void write (Ostream &os) const
 Write.
void operator= (const base &gltf)

Additional Inherited Members

Protected Attributes inherited from base
word name_
 Name.
label id_
 ID.

Detailed Description

glTF mesh

Note
Implements the glTF v2 specification
Source files

Definition at line 60 of file foamGltfMesh.H.

Constructor & Destructor Documentation

◆ mesh() [1/2]

mesh ( )

Default construct.

Definition at line 25 of file foamGltfMesh.C.

References base::base().

Here is the call graph for this function:

◆ mesh() [2/2]

mesh ( const word & name)
explicit

Construct from name.

Definition at line 34 of file foamGltfMesh.C.

References base::base(), and base::name().

Here is the call graph for this function:

◆ ~mesh()

~mesh ( )
default

Destructor.

References accessorId(), addColour(), addField(), base::name(), Foam::noexcept, os(), and write().

Here is the call graph for this function:

Member Function Documentation

◆ accessorId()

Foam::label & accessorId ( )
noexcept

Return the accessor ID.

Definition at line 45 of file foamGltfMesh.C.

References Foam::noexcept.

Referenced by addColour(), addField(), and ~mesh().

Here is the caller graph for this function:

◆ addField()

void addField ( const word & name,
const label accessorId )

Add a field to the mesh.

Definition at line 51 of file foamGltfMesh.C.

References accessorId(), and base::name().

Referenced by ~mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addColour()

void addColour ( const label accessorId)

Add a colour to the mesh.

Definition at line 57 of file foamGltfMesh.C.

References accessorId(), and Foam::name().

Referenced by ~mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream & os) const

Write.

Definition at line 70 of file foamGltfMesh.C.

References Foam::decrIndent(), f(), Foam::incrIndent(), Foam::indent(), Foam::nl, os(), and base::write().

Referenced by ~mesh().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: