41#ifndef foam_gltf_base_H
42#define foam_gltf_base_H
109 auto key(
const Type& t) ->
typename std::enable_if
111 std::is_enum<Type>::value,
112 typename std::underlying_type<Type>::type
115 return static_cast<typename std::underlying_type<Type>::type
>(t);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Base class for glTF entities.
~base()=default
Destructor.
base(const word &name)
Construct with name.
void write(Ostream &os) const
Write.
const word & name() const noexcept
Return const access to the name.
label & id() noexcept
Return access to the ID.
void operator=(const base &gltf)
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
@ NORMAL
VEC3 Normalised XYZ vertex normals.
@ TEXCOORD_0
VEC2 UV texture coordinates.
@ TANGENT
VEC4 XYZW vertex tangents.
@ COLOR_0
VEC3 (rgb), VEC4 (rgba)
@ POSITION
VEC3 XYZ vertex positions; requires 'min' and 'max'.
@ TEXCOORD_1
VEC2 UV texture coordinates.
@ ELEMENT_ARRAY_BUFFER
vertex indices
@ ARRAY_BUFFER
vertex attributes
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & indent(Ostream &os)
Indent stream.
constexpr char nl
The newline '\n' character (0x0a)