eos 1.4.0
Loading...
Searching...
No Matches
Public Attributes | List of all members
eos::core::Mesh Struct Reference

This class represents a 3D mesh consisting of vertices, vertex colour information and texture coordinates. More...

#include <Mesh.hpp>

Public Attributes

std::vector< Eigen::Vector3f > vertices
 3D vertex positions.
 
std::vector< Eigen::Vector3f > colors
 Colour information for each vertex. Expected to be in RGB order.
 
std::vector< Eigen::Vector2f > texcoords
 Texture coordinates.
 
std::vector< std::array< int, 3 > > tvi
 Triangle vertex indices.
 
std::vector< std::array< int, 3 > > tci
 Triangle color indices (usually the same as tvi)
 
std::vector< std::array< int, 3 > > tti
 Triangle texture indices.
 

Detailed Description

This class represents a 3D mesh consisting of vertices, vertex colour information and texture coordinates.

Additionally it stores the indices that specify which vertices to use to generate the triangle mesh out of the vertices.

texcoords should either be the same size as vertices (i.e. one set of texture coordinates per vertex), or alternatively tti can be set, then a separate triangulation for the texture coordinates can be used (e.g. for texture maps that contain seams).


The documentation for this struct was generated from the following file: