|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
A triangle defined by three vertex indices. More...
#include <types.h>
Public Attributes | |
| uint32_t | v0 = 0 |
| Index of the first vertex in Mesh::vertices. | |
| uint32_t | v1 = 0 |
| Index of the second vertex in Mesh::vertices. | |
| uint32_t | v2 = 0 |
| Index of the third vertex in Mesh::vertices. | |
A triangle defined by three vertex indices.
A Triangle does not store actual 3D positions. Instead it stores three indices (v0, v1, v2) into a Mesh::vertices array. This is the standard "indexed face set" representation used throughout computer graphics: vertices are stored once and triangles reference them.
| uint32_t scimesh::Triangle::v0 = 0 |
Index of the first vertex in Mesh::vertices.
| uint32_t scimesh::Triangle::v1 = 0 |
Index of the second vertex in Mesh::vertices.
| uint32_t scimesh::Triangle::v2 = 0 |
Index of the third vertex in Mesh::vertices.