    

 ## 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 Nexus { 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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) class [GLTF](class_a_n_s_y_s_1_1_nexus_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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafe) enum [GLTFError](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafe) {

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

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

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

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

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

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

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

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

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

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

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

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

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

<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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987c) enum [OutputType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987c)

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

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

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

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

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

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

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

<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_nexus_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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a38bbe9fb147e0073839200abbbafc676) static GLTFWRITERSPEC [GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml) *[Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a38bbe9fb147e0073839200abbbafc676)(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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987c) fileType = [OT\_AVZ](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987caffc12fe8ec514248496a1469f781c9e1) 

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

<a id="l00074" name="l00074"></a>[ 74](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a586171eb8e873e909db02a7eb4d80f5c) static GLTFWRITERSPEC void [Destroy](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a586171eb8e873e909db02a7eb4d80f5c)([GLTF](class_a_n_s_y_s_1_1_nexus_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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a7a468ecf1f594b411023782d18f08823) GLTFWRITERSPEC virtual bool [Write](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a7a468ecf1f594b411023782d18f08823)(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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a70b6a7145217bb4033fd8623bd58ec56) GLTFWRITERSPEC virtual void [SetDefaultScene](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a70b6a7145217bb4033fd8623bd58ec56)(const [Scene](class_a_n_s_y_s_1_1_nexus_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_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a812b885f21ed48bad70fea6b03e76913) GLTFWRITERSPEC virtual [GLTFError](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafe) [GetError](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a812b885f21ed48bad70fea6b03e76913)() = 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

[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.

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



[ANSYS::Nexus::GLTFWriter::GLTF::Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a38bbe9fb147e0073839200abbbafc676)

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



[ANSYS::Nexus::GLTFWriter::GLTF::Destroy](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a586171eb8e873e909db02a7eb4d80f5c)

static void Destroy(GLTF *gltf)



[ANSYS::Nexus::GLTFWriter::GLTF::OutputType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987c)

OutputType

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



[ANSYS::Nexus::GLTFWriter::GLTF::OT\_GLTF1](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987ca2022f4f2ac71f6d10ffa9bdd50400e05)

@ OT_GLTF1

GLTF 1.0 spec.

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



[ANSYS::Nexus::GLTFWriter::GLTF::OT\_GLTF](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987ca35927e6892acc7aebd8ed3637a26a990)

@ OT_GLTF

GLTF for ANSYS Viewer.

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



[ANSYS::Nexus::GLTFWriter::GLTF::OT\_GLB2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987caa5f5fcd8755f4a1ed14e6e09664d509a)

@ 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::Nexus::GLTFWriter::GLTF::OT\_GLB1](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987cadc89ceda75f446f79272885e11433366)

@ 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::Nexus::GLTFWriter::GLTF::OT\_AVZ](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a65f7ca2b0855b66b6ae9f93bd3c1987caffc12fe8ec514248496a1469f781c9e1)

@ OT_AVZ

AVZ file for ANSYS Viewer.

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



[ANSYS::Nexus::GLTFWriter::GLTF::SetDefaultScene](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a70b6a7145217bb4033fd8623bd58ec56)

virtual void SetDefaultScene(const Scene *scene)=0



[ANSYS::Nexus::GLTFWriter::GLTF::Write](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a7a468ecf1f594b411023782d18f08823)

virtual bool Write(bool formatJSON=false)=0



[ANSYS::Nexus::GLTFWriter::GLTF::GetError](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#a812b885f21ed48bad70fea6b03e76913)

virtual GLTFError GetError()=0



[ANSYS::Nexus::GLTFWriter::GLTF::GLTFError](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafe)

GLTFError

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_NONE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea049c3b804e69ae05c02f4c2dedf4e0ea)

@ GLTF_ERROR_NONE

No Error.

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_WRITE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea148ae23ac711c7f43dd16e92348937a3)

@ GLTF_ERROR_WRITE

Error writing file data.

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_PATH](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea1afb281a63002ee2c8a668422eccd5c0)

@ GLTF_ERROR_INVALID_PATH

Path not valid.

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_VALUE\_NOT\_INITIALIZED](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea1c47ef5344946e5eea78d3543fe665f3)

@ 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::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_VALUE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea382e97e558c7245031b324d4b91ab5f4)

@ 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::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_INCOMPATIBLE\_VALUE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea4b4a18acdadcea64ac7afdc249170318)

@ 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::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_TYPE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea59ad81f97b600a6e8c960411ed67496a)

@ 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::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_INVALID\_TARGET](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea7cf97ea67f80ee2bcdfcb9cfab7095c7)

@ 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::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_DUPLICATE\_VALUE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafea97ced97a4c4799ac0434f89a04806113)

@ 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::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_RANGE](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafeaa983770c4317af7082d25f68c006e213)

@ GLTF_ERROR_RANGE

Index out of range.

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_READ](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafead5336526c4f7a3cb42cb89bce88133f6)

@ GLTF_ERROR_READ

Error reading file data.

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_MEMORY](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafead705f5ff45e81718b44e3310b82a57ff)

@ GLTF_ERROR_MEMORY

Memory allocation error.

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



[ANSYS::Nexus::GLTFWriter::GLTF::GLTF\_ERROR\_SIZE\_MISMATCH](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_g_l_t_f.xhtml#acf83a4d185d959503cb9f3f2c2e9fafeae3bd2b97e6b41436340e0dd3954d5d26)

@ 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::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 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)