Skip to main content

Post-processing tools 2025 R1

ANSYS::AVZ::GLTFWriter::Index Class Reference

Last update: 16.07.2025

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::AVZ::GLTFWriter::Index:

Static Public Member Functions

static Index * Create (GLTF *gltf, unsigned int count, const unsigned short *indices, Buffer *buffer=0)
 

Detailed Description

The element data is found in the attributes appended to the primitives. Every primitive requires an index. The indices define how the attributes are rendered.

Examples
Test002.cpp, Test005.cpp, Test008.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.

Definition at line 28 of file GLTFIndex.h.

Constructor & Destructor Documentation

◆ ~Index()

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

Definition at line 31 of file GLTFIndex.h.

Member Function Documentation

◆ Create()

static Index * ANSYS::AVZ::GLTFWriter::Index::Create ( GLTF * gltf,
unsigned int count,
const unsigned short * indices,
Buffer * buffer = 0 )
static

Creates a set of indices that define the renderable elements.

Returns
Index object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]countNumber of indices.
[in]indicesIndexes into attributes for elements.
[in]bufferOptional, Buffer into which to write indices. Indices are appended to buffer.

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

Connect with Ansys