    

 ## On this page

  

 

 # GLTFGLTF

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1/\*

<a id="l00002" name="l00002"></a> 2 \* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00003" name="l00003"></a> 3 \* 

<a id="l00004" name="l00004"></a> 4 \* Restricted Rights Legend

<a id="l00005" name="l00005"></a> 5 \*

<a id="l00006" name="l00006"></a> 6 \* Use, duplication, or disclosure of this

<a id="l00007" name="l00007"></a> 7 \* software and its documentation by the

<a id="l00008" name="l00008"></a> 8 \* Government is subject to restrictions as

<a id="l00009" name="l00009"></a> 9 \* set forth in subdivision \[(b)(3)(ii)\] of

<a id="l00010" name="l00010"></a> 10 \* the Rights in Technical Data and Computer

<a id="l00011" name="l00011"></a> 11 \* Software clause at 52.227-7013.

<a id="l00012" name="l00012"></a> 12 \*/

<a id="l00013" name="l00013"></a> 13 

<a id="l00018" name="l00018"></a> 18\#ifndef \_\_INCLUDED\_GLTF\_GLTF\_\_

<a id="l00019" name="l00019"></a> 19\#define \_\_INCLUDED\_GLTF\_GLTF\_\_

<a id="l00020" name="l00020"></a> 20 

<a id="l00021" name="l00021"></a> 21\#include "GLTFCommon.h"

<a id="l00022" name="l00022"></a> 22 

<a id="l00023" name="l00023"></a> 23namespace [ANSYS](namespace_a_n_s_y_s.xhtml) { namespace AVZ { namespace GLTFWriter {

<a id="l00024" name="l00024"></a> 24 class Scene;

<a id="l00025" name="l00025"></a> 25 

<a id="l00031" name="l00031"></a>[ 31](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) class [GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml)

<a id="l00032" name="l00032"></a> 32 {

<a id="l00033" name="l00033"></a> 33 public:

<a id="l00035" name="l00035"></a>[ 35](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4) enum [GLTFError](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4) {

<a id="l00036" name="l00036"></a>[ 36](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a6bb637f968acccc24ee2fee2b39f23e5) [GLTF\_ERROR\_NONE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a6bb637f968acccc24ee2fee2b39f23e5) = 0, 

<a id="l00037" name="l00037"></a>[ 37](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ae6ae707e3c7740bb41560b5c67ac575b) [GLTF\_ERROR\_DUPLICATE\_VALUE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ae6ae707e3c7740bb41560b5c67ac575b), 

<a id="l00038" name="l00038"></a>[ 38](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a574601c24bf71754e08a070fea59a4cf) [GLTF\_ERROR\_INCOMPATIBLE\_VALUE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a574601c24bf71754e08a070fea59a4cf), 

<a id="l00039" name="l00039"></a>[ 39](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a599a5a8fb30f3c105dd718a0e2c8ce49) [GLTF\_ERROR\_INVALID\_PATH](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a599a5a8fb30f3c105dd718a0e2c8ce49), 

<a id="l00040" name="l00040"></a>[ 40](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a11d841e07888cb00645557120b8a1f45) [GLTF\_ERROR\_INVALID\_TARGET](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a11d841e07888cb00645557120b8a1f45), 

<a id="l00041" name="l00041"></a>[ 41](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4af3b8dac91a903167b889e6f8562d31f8) [GLTF\_ERROR\_INVALID\_TYPE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4af3b8dac91a903167b889e6f8562d31f8), 

<a id="l00042" name="l00042"></a>[ 42](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a3e236f59574d0988c1c963d8ab4cdea0) [GLTF\_ERROR\_INVALID\_VALUE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a3e236f59574d0988c1c963d8ab4cdea0), 

<a id="l00043" name="l00043"></a>[ 43](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a3993d0160836fafa0e7c66ceca39c4be) [GLTF\_ERROR\_MEMORY](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a3993d0160836fafa0e7c66ceca39c4be), 

<a id="l00044" name="l00044"></a>[ 44](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ad20acf50f0dc72fb1c25cea565cef8be) [GLTF\_ERROR\_RANGE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ad20acf50f0dc72fb1c25cea565cef8be), 

<a id="l00045" name="l00045"></a>[ 45](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a5bde666dc50ecc457172466644225908) [GLTF\_ERROR\_READ](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a5bde666dc50ecc457172466644225908), 

<a id="l00046" name="l00046"></a>[ 46](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a7a986d06fe789cdf64c814bca7cb37fa) [GLTF\_ERROR\_SIZE\_MISMATCH](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a7a986d06fe789cdf64c814bca7cb37fa), 

<a id="l00047" name="l00047"></a>[ 47](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a1917f255f8b610923c01754b828e0366) [GLTF\_ERROR\_VALUE\_NOT\_INITIALIZED](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a1917f255f8b610923c01754b828e0366), 

<a id="l00048" name="l00048"></a>[ 48](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ab4952a2b478d79748e74743099c2f3d6) [GLTF\_ERROR\_WRITE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ab4952a2b478d79748e74743099c2f3d6), 

<a id="l00049" name="l00049"></a> 49 

<a id="l00050" name="l00050"></a> 50 GLT_ERROR_MAX

<a id="l00051" name="l00051"></a> 51 };

<a id="l00052" name="l00052"></a> 52 

<a id="l00054" name="l00054"></a>[ 54](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720) enum [OutputType](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720)

<a id="l00055" name="l00055"></a> 55 {

<a id="l00056" name="l00056"></a>[ 56](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a557d9ef366cca7b05ff7c501a05ca577) [OT\_AVZ](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a557d9ef366cca7b05ff7c501a05ca577), 

<a id="l00057" name="l00057"></a>[ 57](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a20b38c0c93750658cfd62c552baa233c) [OT\_GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a20b38c0c93750658cfd62c552baa233c), 

<a id="l00058" name="l00058"></a>[ 58](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a3ee14f4b9417285b3785a0052498d5a1) [OT\_GLB1](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a3ee14f4b9417285b3785a0052498d5a1), 

<a id="l00059" name="l00059"></a>[ 59](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720ab728887300b0810a30580d9a30511cf7) [OT\_GLTF1](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720ab728887300b0810a30580d9a30511cf7), 

<a id="l00060" name="l00060"></a> 60 [OT\_GLB2](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a2e7a8e3b6e452428a32366628302db55) 

<a id="l00061" name="l00061"></a>[ 61](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a2e7a8e3b6e452428a32366628302db55) };

<a id="l00062" name="l00062"></a> 62 

<a id="l00063" name="l00063"></a> 63 protected:

<a id="l00064" name="l00064"></a> 64 virtual [~GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml)() {};

<a id="l00065" name="l00065"></a> 65 

<a id="l00066" name="l00066"></a> 66 public:

<a id="l00068" name="l00068"></a>[ 68](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a7cda2f2de4e31e6f0048af26e68bb3d6) static GLTFWRITERSPEC [GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *[Create](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a7cda2f2de4e31e6f0048af26e68bb3d6)(const char *application, 

<a id="l00069" name="l00069"></a> 69 const char *applicationVersion, 

<a id="l00070" name="l00070"></a> 70 const char *filePath, 

<a id="l00071" name="l00071"></a> 71 [OutputType](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720) fileType = [OT\_AVZ](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a557d9ef366cca7b05ff7c501a05ca577) 

<a id="l00072" name="l00072"></a> 72 );

<a id="l00074" name="l00074"></a>[ 74](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acd18fb49263321727e33880688fb6c1d) static GLTFWRITERSPEC void [Destroy](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acd18fb49263321727e33880688fb6c1d)([GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *gltf 

<a id="l00075" name="l00075"></a> 75 );

<a id="l00076" name="l00076"></a> 76 

<a id="l00083" name="l00083"></a>[ 83](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a0bf3a4ec615dc8810776dd82a65eba91) GLTFWRITERSPEC virtual bool [Write](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a0bf3a4ec615dc8810776dd82a65eba91)(bool formatJSON = false 

<a id="l00084" name="l00084"></a> 84 ) = 0;

<a id="l00088" name="l00088"></a>[ 88](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a9201c02eb80171c47e40f2600b92ec6f) GLTFWRITERSPEC virtual void [SetDefaultScene](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a9201c02eb80171c47e40f2600b92ec6f)(const [Scene](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_scene.xhtml) *scene 

<a id="l00089" name="l00089"></a> 89 ) = 0;

<a id="l00093" name="l00093"></a>[ 93](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a63295f8f31619517e94cf27d3a8b9ea8) GLTFWRITERSPEC virtual [GLTFError](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4) [GetError](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a63295f8f31619517e94cf27d3a8b9ea8)() = 0;

<a id="l00094" name="l00094"></a> 94 };

<a id="l00276" name="l00276"></a> 276 

<a id="l00277" name="l00277"></a> 277} } }

<a id="l00278" name="l00278"></a> 278 

<a id="l00279" name="l00279"></a> 279\#endif

<a id="l00280" name="l00280"></a> 280 

[ANSYS::AVZ::GLTFWriter::GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml)

This is the main class of the GLTFWriter.

**Definition:** [GLTFGLTF.h:32](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00031)



[ANSYS::AVZ::GLTFWriter::GLTF::Write](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a0bf3a4ec615dc8810776dd82a65eba91)

virtual bool Write(bool formatJSON=false)=0



[ANSYS::AVZ::GLTFWriter::GLTF::GLTFError](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4)

GLTFError

**Definition:** [GLTFGLTF.h:35](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00035)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_TARGET](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a11d841e07888cb00645557120b8a1f45)

@ GLTF_ERROR_INVALID_TARGET

Animation target not valid.

**Definition:** [GLTFGLTF.h:40](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00040)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_VALUE\_NOT\_INITIALIZED](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a1917f255f8b610923c01754b828e0366)

@ GLTF_ERROR_VALUE_NOT_INITIALIZED

Trying to animate value that was never initialized.

**Definition:** [GLTFGLTF.h:47](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00047)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_MEMORY](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a3993d0160836fafa0e7c66ceca39c4be)

@ GLTF_ERROR_MEMORY

Memory allocation error.

**Definition:** [GLTFGLTF.h:43](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00043)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_VALUE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a3e236f59574d0988c1c963d8ab4cdea0)

@ GLTF_ERROR_INVALID_VALUE

Value is not valid.

**Definition:** [GLTFGLTF.h:42](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00042)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_INCOMPATIBLE\_VALUE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a574601c24bf71754e08a070fea59a4cf)

@ GLTF_ERROR_INCOMPATIBLE_VALUE

Value not compatible with other properties.

**Definition:** [GLTFGLTF.h:38](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00038)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_PATH](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a599a5a8fb30f3c105dd718a0e2c8ce49)

@ GLTF_ERROR_INVALID_PATH

Path not valid.

**Definition:** [GLTFGLTF.h:39](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00039)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_READ](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a5bde666dc50ecc457172466644225908)

@ GLTF_ERROR_READ

Error reading file data.

**Definition:** [GLTFGLTF.h:45](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00045)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_NONE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a6bb637f968acccc24ee2fee2b39f23e5)

@ GLTF_ERROR_NONE

No Error.

**Definition:** [GLTFGLTF.h:36](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00036)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_SIZE\_MISMATCH](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4a7a986d06fe789cdf64c814bca7cb37fa)

@ GLTF_ERROR_SIZE_MISMATCH

Animation input/output size mismatch.

**Definition:** [GLTFGLTF.h:46](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00046)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_WRITE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ab4952a2b478d79748e74743099c2f3d6)

@ GLTF_ERROR_WRITE

Error writing file data.

**Definition:** [GLTFGLTF.h:48](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00048)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_RANGE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ad20acf50f0dc72fb1c25cea565cef8be)

@ GLTF_ERROR_RANGE

Index out of range.

**Definition:** [GLTFGLTF.h:44](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00044)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_DUPLICATE\_VALUE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4ae6ae707e3c7740bb41560b5c67ac575b)

@ GLTF_ERROR_DUPLICATE_VALUE

Value is a duplicated.

**Definition:** [GLTFGLTF.h:37](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00037)



[ANSYS::AVZ::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_TYPE](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a5b8141dc8536bc10d1a72996ad6f98b4af3b8dac91a903167b889e6f8562d31f8)

@ GLTF_ERROR_INVALID_TYPE

Value type not valid for other properties.

**Definition:** [GLTFGLTF.h:41](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00041)



[ANSYS::AVZ::GLTFWriter::GLTF::GetError](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a63295f8f31619517e94cf27d3a8b9ea8)

virtual GLTFError GetError()=0



[ANSYS::AVZ::GLTFWriter::GLTF::Create](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a7cda2f2de4e31e6f0048af26e68bb3d6)

static GLTF * Create(const char *application, const char *applicationVersion, const char *filePath, OutputType fileType=OT_AVZ)



[ANSYS::AVZ::GLTFWriter::GLTF::SetDefaultScene](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a9201c02eb80171c47e40f2600b92ec6f)

virtual void SetDefaultScene(const Scene *scene)=0



[ANSYS::AVZ::GLTFWriter::GLTF::Destroy](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acd18fb49263321727e33880688fb6c1d)

static void Destroy(GLTF *gltf)



[ANSYS::AVZ::GLTFWriter::GLTF::OutputType](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720)

OutputType

**Definition:** [GLTFGLTF.h:55](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00054)



[ANSYS::AVZ::GLTFWriter::GLTF::OT\_GLTF](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a20b38c0c93750658cfd62c552baa233c)

@ OT_GLTF

GLTF for ANSYS Viewer.

**Definition:** [GLTFGLTF.h:57](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00057)



[ANSYS::AVZ::GLTFWriter::GLTF::OT\_GLB2](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a2e7a8e3b6e452428a32366628302db55)

@ OT_GLB2

GLB file in GLTF 2.0 spec.

**Definition:** [GLTFGLTF.h:60](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00061)



[ANSYS::AVZ::GLTFWriter::GLTF::OT\_GLB1](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a3ee14f4b9417285b3785a0052498d5a1)

@ OT_GLB1

GLB file in GLTF 1.0 spec (may not be supported)

**Definition:** [GLTFGLTF.h:58](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00058)



[ANSYS::AVZ::GLTFWriter::GLTF::OT\_AVZ](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720a557d9ef366cca7b05ff7c501a05ca577)

@ OT_AVZ

AVZ file for ANSYS Viewer.

**Definition:** [GLTFGLTF.h:56](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00056)



[ANSYS::AVZ::GLTFWriter::GLTF::OT\_GLTF1](class_a_n_s_y_s_1_1_a_v_z_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#ad551f06ce7377ce5e50901b2756e4720ab728887300b0810a30580d9a30511cf7)

@ OT_GLTF1

GLTF 1.0 spec.

**Definition:** [GLTFGLTF.h:59](_g_l_t_f_g_l_t_f_8h_source.xhtml#l00059)



[ANSYS::AVZ::GLTFWriter::Scene](class_a_n_s_y_s_1_1_a_v_z_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 file.

**Definition:** [GLTFScene.h:29](_g_l_t_f_scene_8h_source.xhtml#l00028)



[ANSYS](namespace_a_n_s_y_s.xhtml)

GLTFWriter API Documentation.

**Definition:** [GLTFAnimation.h:19](_g_l_t_f_animation_8h_source.xhtml#l00019)