Skip to main content

Post-processing tools 2024 R2

ANSYS::AVZ::GLTFWriter::Utils Namespace Reference

Last update: 16.07.2025

Classes

class  Repack
 

Functions

void ComputeElementNormals3 (const unsigned int numVertices, const float *vertices, const unsigned int numElements, const unsigned int elementSize, const unsigned short *indices, float *normals)
 
void ComputeElementNormals3 (const unsigned int numVertices, const float *vertices, const unsigned int numElements, const unsigned int elementSize, const unsigned int *indices, float *normals)
 
void ComputeVertexNormals3 (const unsigned int numVertices, const float *vertices, const unsigned int numElements, const unsigned int elementSize, const unsigned short *indices, float *normals)
 
void ComputeVertexNormals3 (const unsigned int numVertices, const float *vertices, const unsigned int numElements, const unsigned int elementSize, const unsigned int *indices, float *normals)
 

Function Documentation

◆ ComputeElementNormals3() [1/2]

void ANSYS::AVZ::GLTFWriter::Utils::ComputeElementNormals3 ( const unsigned int  numVertices,
const float *  vertices,
const unsigned int  numElements,
const unsigned int  elementSize,
const unsigned int *  indices,
float *  normals 
)

Computes XYZ element normals from vertices and elements. unsigned int and unsigned short indices are supported.

Parameters
[in]numVerticesNumber of vertices.
[in]verticesXYZ vertex data.
[in]numElementsNumber of elements.
[in]elementSizeNumber of vertices in element.
[in]indicesVertex indices of element.
[in]normalsMemory into which element normals are inserted. This is preallocated to a size of 3 * numVertices floats.

◆ ComputeElementNormals3() [2/2]

void ANSYS::AVZ::GLTFWriter::Utils::ComputeElementNormals3 ( const unsigned int  numVertices,
const float *  vertices,
const unsigned int  numElements,
const unsigned int  elementSize,
const unsigned short *  indices,
float *  normals 
)

Computes XYZ element normals from vertices and elements. unsigned int and unsigned short indices are supported.

Parameters
[in]numVerticesNumber of vertices.
[in]verticesXYZ vertex data.
[in]numElementsNumber of elements.
[in]elementSizeNumber of vertices in element.
[in]indicesVertex indices of element.
[in]normalsMemory into which element normals are inserted. This is preallocated to a size of 3 * numVertices floats.

◆ ComputeVertexNormals3() [1/2]

void ANSYS::AVZ::GLTFWriter::Utils::ComputeVertexNormals3 ( const unsigned int  numVertices,
const float *  vertices,
const unsigned int  numElements,
const unsigned int  elementSize,
const unsigned int *  indices,
float *  normals 
)

Computes XYZ vertex normals from vertices and elements. The element normals for all elements adjacent to a vertex are combined to get the vertex normal. unsigned int and unsigned short indices are supported.

Parameters
[in]numVerticesNumber of vertices.
[in]verticesXYZ vertex data.
[in]numElementsNumber of elements.
[in]elementSizeNumber of vertices in element.
[in]indicesVertex indices of element.
[in]normalsMemory into which vertex normals are inserted. This is preallocated to a size of 3 * numElements floats.

◆ ComputeVertexNormals3() [2/2]

void ANSYS::AVZ::GLTFWriter::Utils::ComputeVertexNormals3 ( const unsigned int  numVertices,
const float *  vertices,
const unsigned int  numElements,
const unsigned int  elementSize,
const unsigned short *  indices,
float *  normals 
)

Computes XYZ vertex normals from vertices and elements. The element normals for all elements adjacent to a vertex are combined to get the vertex normal. unsigned int and unsigned short indices are supported.

Parameters
[in]numVerticesNumber of vertices.
[in]verticesXYZ vertex data.
[in]numElementsNumber of elements.
[in]elementSizeNumber of vertices in element.
[in]indicesVertex indices of element.
[in]normalsMemory into which vertex normals are inserted. This is preallocated to a size of 3 * numElements floats.

Connect with Ansys