Skip to main content

Post-processing tools 2023 R2

ANSYS::Nexus::GLTFWriter::Index Class Reference

Last update: 17.04.2023

Indexes define elements within primitives. More...

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::Nexus::GLTFWriter::Index:

Static Public Member Functions

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

Detailed Description

Indexes define elements within primitives.

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.

Definition at line 28 of file GLTFIndex.h.

Member Function Documentation

◆ Create()

static Index* ANSYS::Nexus::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.
Examples
Test002.cpp, Test005.cpp, Test008.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.

The documentation for this class was generated from the following file:
  • D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFIndex.h