    

 ## On this page

  

 

 # GLTFAttribute

 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 \#ifndef \_\_INCLUDED\_GLTF\_GLTFATTRIBUTE\_\_

<a id="l00014" name="l00014"></a> 14 \#define \_\_INCLUDED\_GLTF\_GLTFATTRIBUTE\_\_

<a id="l00015" name="l00015"></a> 15 

<a id="l00016" name="l00016"></a> 16 \#include "GLTFCommon.h"

<a id="l00017" name="l00017"></a> 17 \#include "GLTFObject.h"

<a id="l00018" name="l00018"></a> 18 

<a id="l00019" name="l00019"></a> 19 namespace [ANSYS](namespace_a_n_s_y_s.xhtml) { namespace Nexus { namespace GLTFWriter {

<a id="l00020" name="l00020"></a> 20 class GLTF;

<a id="l00021" name="l00021"></a> 21 class Buffer;

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

<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_attribute.xhtml) class [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) : public Object

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb) enum [AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb)

<a id="l00036" name="l00036"></a> 36 {

<a id="l00037" name="l00037"></a> 37 // AT\_BYTE = 5120,

<a id="l00038" name="l00038"></a> 38 // AT\_SHORT = 5122,

<a id="l00039" name="l00039"></a> 39 // AT\_UNSIGNED\_SHORT = 5123,

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba61b89340f40b606720433dcd8da573e4) [AT\_INT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba61b89340f40b606720433dcd8da573e4) = 5124, 

<a id="l00041" name="l00041"></a> 41 // AT\_UNSIGNED\_INT = 5125,

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba6d124c894e5bdc043eeebec0f852e857) [AT\_FLOAT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba6d124c894e5bdc043eeebec0f852e857) = 5126, 

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddbaed110dc9dd248a0a28797e7a6763cf6a) [AT\_FLOAT\_VEC2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddbaed110dc9dd248a0a28797e7a6763cf6a) = 35664, 

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba0e6049e71b78dccf0f7f9791abe541c3) [AT\_FLOAT\_VEC3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba0e6049e71b78dccf0f7f9791abe541c3) = 35665, 

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba5af14585a5eb16f52089b1baf55db718) [AT\_FLOAT\_VEC4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba5af14585a5eb16f52089b1baf55db718) = 35666, 

<a id="l00046" name="l00046"></a> 46 

<a id="l00047" name="l00047"></a> 47 [AT\_FLOAT\_MAT4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba13e136aa2ada6dbe9a5253695b6abf65) = 35676 

<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_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba13e136aa2ada6dbe9a5253695b6abf65) };

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

<a id="l00050" name="l00050"></a> 50 protected:

<a id="l00051" name="l00051"></a> 51 virtual ~[Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml)() {}

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

<a id="l00053" name="l00053"></a> 53 public:

<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_attribute.xhtml#a74b97d3bfc2585fe4d67a663a79abfa1) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a74b97d3bfc2585fe4d67a663a79abfa1)([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="l00060" name="l00060"></a> 60 const char *name, 

<a id="l00061" name="l00061"></a> 61 [AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb) type, 

<a id="l00062" name="l00062"></a> 62 unsigned int count, 

<a id="l00063" name="l00063"></a> 63 const int *data, 

<a id="l00064" name="l00064"></a> 64 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

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

<a id="l00071" name="l00071"></a>[ 71](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ac2bbe340df155fbdb53090ada0f57afc) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ac2bbe340df155fbdb53090ada0f57afc)([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="l00072" name="l00072"></a> 72 const char *name, 

<a id="l00073" name="l00073"></a> 73 [AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb) type, 

<a id="l00074" name="l00074"></a> 74 unsigned int count, 

<a id="l00075" name="l00075"></a> 75 const float *data, 

<a id="l00076" name="l00076"></a> 76 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

<a id="l00077" name="l00077"></a> 77 );

<a id="l00082" name="l00082"></a>[ 82](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a2490057f37890b1dd7debe04ddf1fd6f) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[CreatePosition](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a2490057f37890b1dd7debe04ddf1fd6f)([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="l00083" name="l00083"></a> 83 unsigned int count, 

<a id="l00084" name="l00084"></a> 84 const float *data, 

<a id="l00085" name="l00085"></a> 85 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

<a id="l00086" name="l00086"></a> 86 );

<a id="l00089" name="l00089"></a>[ 89](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ac7973400bb8ca2f8d3eb8391b7826cce) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[CreateColor](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ac7973400bb8ca2f8d3eb8391b7826cce)([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="l00090" name="l00090"></a> 90 [AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb) type, 

<a id="l00091" name="l00091"></a> 91 unsigned int count, 

<a id="l00092" name="l00092"></a> 92 const float *data, 

<a id="l00093" name="l00093"></a> 93 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

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

<a id="l00097" name="l00097"></a>[ 97](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a9c19f5df3d1335f023f9bec96a8f054f) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[CreatePointSize](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a9c19f5df3d1335f023f9bec96a8f054f)([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="l00098" name="l00098"></a> 98 unsigned int count, 

<a id="l00099" name="l00099"></a> 99 const float *data, 

<a id="l00100" name="l00100"></a> 100 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

<a id="l00101" name="l00101"></a> 101 );

<a id="l00105" name="l00105"></a>[ 105](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ab8a06a0c267a6e1dd895ca10e8c716eb) static [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml)* [CreateDisplacementScale](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ab8a06a0c267a6e1dd895ca10e8c716eb)([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="l00106" name="l00106"></a> 106 unsigned int count, 

<a id="l00107" name="l00107"></a> 107 const float* data, 

<a id="l00108" name="l00108"></a> 108 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml)* buffer = 0 

<a id="l00109" name="l00109"></a> 109 );

<a id="l00114" name="l00114"></a>[ 114](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa0488c9bf977a5c3b55034b3c39eb9c5) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[CreateNormal](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa0488c9bf977a5c3b55034b3c39eb9c5)([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="l00115" name="l00115"></a> 115 unsigned int count, 

<a id="l00116" name="l00116"></a> 116 const float *data, 

<a id="l00117" name="l00117"></a> 117 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

<a id="l00118" name="l00118"></a> 118 );

<a id="l00127" name="l00127"></a>[ 127](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#af4bd5279c34932ef6afd15a858d39a6c) static GLTFWRITERSPEC [Attribute](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml) *[CreateTextureCoord](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#af4bd5279c34932ef6afd15a858d39a6c)([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="l00128" name="l00128"></a> 128 unsigned int num, 

<a id="l00129" name="l00129"></a> 129 unsigned int count, 

<a id="l00130" name="l00130"></a> 130 const float *data, 

<a id="l00131" name="l00131"></a> 131 [Buffer](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_buffer.xhtml) *buffer = 0 

<a id="l00132" name="l00132"></a> 132 );

<a id="l00133" name="l00133"></a> 133 

<a id="l00140" name="l00140"></a>[ 140](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ae56748a9592c0ecdc8c933e2068f5a9f) GLTFWRITERSPEC virtual bool [SetMinMax](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ae56748a9592c0ecdc8c933e2068f5a9f)([AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb) type, 

<a id="l00141" name="l00141"></a> 141 const int *mn, 

<a id="l00142" name="l00142"></a> 142 const int *mx 

<a id="l00143" name="l00143"></a> 143 ) = 0;

<a id="l00150" name="l00150"></a>[ 150](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a1d3b6de1515034297d22160fc84edcfd) GLTFWRITERSPEC virtual bool [SetMinMax](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a1d3b6de1515034297d22160fc84edcfd)([AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb) type, 

<a id="l00151" name="l00151"></a> 151 const float *mn, 

<a id="l00152" name="l00152"></a> 152 const float *mx 

<a id="l00153" name="l00153"></a> 153 ) = 0;

<a id="l00155" name="l00155"></a>[ 155](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ae5dd11c515ff409ca74e94693f2d1585) GLTFWRITERSPEC virtual void [SetLogarithmic](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ae5dd11c515ff409ca74e94693f2d1585)(bool log 

<a id="l00156" name="l00156"></a> 156 ) = 0;

<a id="l00157" name="l00157"></a> 157 };

<a id="l00158" name="l00158"></a> 158 

<a id="l00159" name="l00159"></a> 159 } } }

<a id="l00160" name="l00160"></a> 160 

<a id="l00161" name="l00161"></a> 161 \#endif

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

**Definition:** [GLTFAttribute.h:32](_g_l_t_f_attribute_8h_source.xhtml#l00031)



[ANSYS::Nexus::GLTFWriter::Attribute::SetMinMax](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a1d3b6de1515034297d22160fc84edcfd)

virtual bool SetMinMax(AttributeType type, const float *mn, const float *mx)=0



[ANSYS::Nexus::GLTFWriter::Attribute::CreatePosition](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a2490057f37890b1dd7debe04ddf1fd6f)

static Attribute * CreatePosition(GLTF *gltf, unsigned int count, const float *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a74b97d3bfc2585fe4d67a663a79abfa1)

static Attribute * Create(GLTF *gltf, const char *name, AttributeType type, unsigned int count, const int *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::CreatePointSize](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#a9c19f5df3d1335f023f9bec96a8f054f)

static Attribute * CreatePointSize(GLTF *gltf, unsigned int count, const float *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::CreateNormal](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa0488c9bf977a5c3b55034b3c39eb9c5)

static Attribute * CreateNormal(GLTF *gltf, unsigned int count, const float *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::AttributeType](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddb)

AttributeType

**Definition:** [GLTFAttribute.h:36](_g_l_t_f_attribute_8h_source.xhtml#l00035)



[ANSYS::Nexus::GLTFWriter::Attribute::AT\_FLOAT\_VEC3](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba0e6049e71b78dccf0f7f9791abe541c3)

@ AT_FLOAT_VEC3

3 AT_FLOATs

**Definition:** [GLTFAttribute.h:44](_g_l_t_f_attribute_8h_source.xhtml#l00044)



[ANSYS::Nexus::GLTFWriter::Attribute::AT\_FLOAT\_MAT4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba13e136aa2ada6dbe9a5253695b6abf65)

@ AT_FLOAT_MAT4

4x4 (16) AT_FLOATs

**Definition:** [GLTFAttribute.h:47](_g_l_t_f_attribute_8h_source.xhtml#l00048)



[ANSYS::Nexus::GLTFWriter::Attribute::AT\_FLOAT\_VEC4](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba5af14585a5eb16f52089b1baf55db718)

@ AT_FLOAT_VEC4

4 AT_FLOATs

**Definition:** [GLTFAttribute.h:45](_g_l_t_f_attribute_8h_source.xhtml#l00045)



[ANSYS::Nexus::GLTFWriter::Attribute::AT\_INT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba61b89340f40b606720433dcd8da573e4)

@ AT_INT

4 byte integer

**Definition:** [GLTFAttribute.h:40](_g_l_t_f_attribute_8h_source.xhtml#l00040)



[ANSYS::Nexus::GLTFWriter::Attribute::AT\_FLOAT](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddba6d124c894e5bdc043eeebec0f852e857)

@ AT_FLOAT

4 byte float

**Definition:** [GLTFAttribute.h:42](_g_l_t_f_attribute_8h_source.xhtml#l00042)



[ANSYS::Nexus::GLTFWriter::Attribute::AT\_FLOAT\_VEC2](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#aa787c451052ac912fd9af91c4ff54ddbaed110dc9dd248a0a28797e7a6763cf6a)

@ AT_FLOAT_VEC2

2 AT_FLOATs

**Definition:** [GLTFAttribute.h:43](_g_l_t_f_attribute_8h_source.xhtml#l00043)



[ANSYS::Nexus::GLTFWriter::Attribute::CreateDisplacementScale](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ab8a06a0c267a6e1dd895ca10e8c716eb)

static Attribute * CreateDisplacementScale(GLTF *gltf, unsigned int count, const float *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::Create](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ac2bbe340df155fbdb53090ada0f57afc)

static Attribute * Create(GLTF *gltf, const char *name, AttributeType type, unsigned int count, const float *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::CreateColor](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ac7973400bb8ca2f8d3eb8391b7826cce)

static Attribute * CreateColor(GLTF *gltf, AttributeType type, unsigned int count, const float *data, Buffer *buffer=0)



[ANSYS::Nexus::GLTFWriter::Attribute::SetMinMax](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ae56748a9592c0ecdc8c933e2068f5a9f)

virtual bool SetMinMax(AttributeType type, const int *mn, const int *mx)=0



[ANSYS::Nexus::GLTFWriter::Attribute::SetLogarithmic](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#ae5dd11c515ff409ca74e94693f2d1585)

virtual void SetLogarithmic(bool log)=0



[ANSYS::Nexus::GLTFWriter::Attribute::CreateTextureCoord](class_a_n_s_y_s_1_1_nexus_1_1_g_l_t_f_writer_1_1_attribute.xhtml#af4bd5279c34932ef6afd15a858d39a6c)

static Attribute * CreateTextureCoord(GLTF *gltf, unsigned int num, unsigned int count, const float *data, Buffer *buffer=0)



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

**Definition:** [GLTFBuffer.h:36](_g_l_t_f_buffer_8h_source.xhtml#l00035)



[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](namespace_a_n_s_y_s.xhtml)

GLTFWriter API Documentation.

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