    

 ## On this page

  

 

 # GLTFWriter Interface

 Last update: 16.07.2025 

A C++ API to write AVZ and GLTF format geometry files. [More...](#details)

## <a id="nested-classes" name="nested-classes"></a>Classes

class [ANSYS::Nexus::GLTFWriter::AnimationSampler](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_animation_sampler.xhtml) [Animation](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_animation.xhtml "Animations define mechanisms for changing over time, node properties and material values.") samplers define mechanisms for defining how animation channels change over time. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_animation_sampler.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) Attributes define the per element index values for elements defined by [Index](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_index.xhtml "Indexes define elements within primitives."). [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) Buffers define files that are used to contain attribute and index data. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Camera](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_camera.xhtml) Cameras define an orthographic or perspective projection of the scene. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_camera.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) This is the main class of the GLTFWriter. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Image](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_image.xhtml) Images define texture data. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_image.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Index](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_index.xhtml) Indexes define elements within primitives. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_index.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Legend](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_legend.xhtml) Legends are colored bars with numbers at intervals along bar. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_legend.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Light](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_light.xhtml) Lights define the light objects that can be added to a light node. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_light.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Material](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_material.xhtml) Materials describe how primitives are rendered. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_material.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Primitive](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_primitive.xhtml) Primitives are the renderable parts of meshes. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_primitive.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Node](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_node.xhtml) Nodes are the GLTFWriter class that contain the data that is defined in the [GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml "This is the main class of the GLTFWriter.") file. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_node.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Program](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_program.xhtml) Programs are the GLSL executable code for rendering the primitives. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_program.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Sampler](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_sampler.xhtml) Samplers define how values are generated from textures with the give texture coordinates. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_sampler.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Scene](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_scene.xhtml) Scenes are the GLTFWriter class that create the view of the data that is defined in the [GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml "This is the main class of the GLTFWriter.") file. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_scene.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Shader](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_shader.xhtml) Shaders are the GLSL executable code for vertex and fragment. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_shader.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Parameter](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml) Parameters describe how and from where program attributes and uniforms are derived. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_parameter.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Texture](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_texture.xhtml) Textures are images that can be used to color a primitive. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_texture.xhtml#details)  
 class [ANSYS::Nexus::GLTFWriter::Value](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_value.xhtml) Values are objects for storing single and multiple numbers and strings. [More...](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_value.xhtml#details)  
 <a id="details" name="details"></a>## Detailed Description

A C++ API to write AVZ and GLTF format geometry files.

---

 The GLTFWriter API allows for an application to be able to export geometric scenes in several formats. These scenes can be static or time varying. The lines, triangles and spheres are captured into "AVZ" or glTF 2.0 format files. The AVZ format is basically an extended form of the glTF 1.0 format that includes support for time varying data, variable transformations and 2D overlay options like annotations and palettes. It also supports "meta" entities like spheres.