NormalVertexCycle Struct Reference

#include <tangentspacenormalhelper.h>

Detailed Description

A simple structure to store a single vertex cycle and the data required to reconstruct the correct normals, when converting to and from tangent space representations. In the usual case (without disjoined data, triangualted mesh) there will be a single vertex cycle around a vertex, with 6 polygons. neighbor information (for each polygon, at which index is the vertex in question present) is stored.

Public Member Functions

Result< void > CopyFrom (const NormalVertexCycle &src)
 

Public Attributes

BufferedBaseArray< Int32, 6 > _polygons
 
BufferedBaseArray< Int32, 6 > _vertexIdxInPolygon
 

Member Function Documentation

◆ CopyFrom()

Result<void> CopyFrom ( const NormalVertexCycle src)

Member Data Documentation

◆ _polygons

BufferedBaseArray<Int32, 6> _polygons

Specifies the polygons that are a part of this cycle.

◆ _vertexIdxInPolygon

BufferedBaseArray<Int32, 6> _vertexIdxInPolygon

for each polygon in this cycle, specifies at which position in the polygon outline [0-3] is the vertex found