mesh Class Reference

glTF mesh More...

Inheritance diagram for mesh:
[legend]
Collaboration diagram for mesh:
[legend]

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

glTF mesh

Note
Implements the glTF v2 specification
Source files

Definition at line 64 of file foamGltfMesh.H.

Constructor & Destructor Documentation

◆ mesh() [1/2]

mesh ( )

Default construct.

Definition at line 32 of file foamGltfMesh.C.

◆ mesh() [2/2]

mesh ( const word name)
explicit

Construct from name.

Definition at line 41 of file foamGltfMesh.C.

◆ ~mesh()

~mesh ( )
default

Destructor.

Member Function Documentation

◆ accessorId()

Foam::label & accessorId ( )
noexcept

Return the accessor ID.

Definition at line 52 of file foamGltfMesh.C.

◆ addField()

void addField ( const word name,
const label  accessorId 
)

Add a field to the mesh.

Definition at line 58 of file foamGltfMesh.C.

References Foam::name().

Here is the call graph for this function:

◆ addColour()

void addColour ( const label  accessorId)

Add a colour to the mesh.

Definition at line 64 of file foamGltfMesh.C.

References Foam::name().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write.

Definition at line 77 of file foamGltfMesh.C.

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

Here is the call graph for this function:

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