Skip to main content

EnSight 2025 R2

ANSYS::AVZ::GLTFWriter::Buffer Class Reference

Last update: 16.07.2025

Buffers define files that are used to contain attribute and index data. More...

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::AVZ::GLTFWriter::Buffer:
ANSYS::AVZ::GLTFWriter::Object

Static Public Member Functions

static Buffer * Create (GLTF *gltf)
 

Additional Inherited Members

- Public Member Functions inherited from ANSYS::AVZ::GLTFWriter::Object
virtual void SetName (const char *name)=0
 
virtual const char * GetName () const =0
 
virtual const char * GetID () const =0
 
- Protected Member Functions inherited from ANSYS::AVZ::GLTFWriter::Object

Detailed Description

Buffers define files that are used to contain attribute and index data.

The creation and use of Buffers is optional. If they are not created with this mechanism they will be automatically created,

If Buffers are created automatically, a unique buffer will be created for each attribute and index. This could result in a large number of files in the GLTF file set.

If Buffers are created with the Buffer::Create method and passed to Attribute and Index creation methods, the attribute and index data will be appended to the already existing buffer data.

Grouping an object's (meshes) attribute data into a single buffer, may provide an increase in performance.

Examples
Test002.cpp, and Test013.cpp.

Definition at line 35 of file GLTFBuffer.h.

Constructor & Destructor Documentation

◆ ~Buffer()

virtual ANSYS::AVZ::GLTFWriter::Buffer::~Buffer ( )
inlineprotectedvirtual

Definition at line 38 of file GLTFBuffer.h.

Member Function Documentation

◆ Create()

static Buffer * ANSYS::AVZ::GLTFWriter::Buffer::Create ( GLTF * gltf)
static

Creates a Buffer. A Buffer can be passed to some Attribute and Index methods.

Returns
Buffer object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.

The documentation for this class was generated from the following file:
  • D:/ANSYSDev/Product-src/webgl_viewer/gltfwriterlib/include/GLTFBuffer.h

Connect with Ansys