Triangle mesh. More...
#include <xac_interface_scene_elements_doc.h>
Public Types | |
typedef Sample_info_surface | Base_info_type |
Declaration of the triangle mesh type info. More... | |
Public Member Functions | |
uint | get_light_id () const |
Get the associated scene light identifier. More... | |
uint | get_material_id (uint material_idx=0u) const |
Get the associated scene Phong material identifier by its index (multiple materials are possible for one triangle mesh) More... | |
const float4 & | get_vertex_color (uint index) const |
Get the color value for a vertex by its index. More... | |
const float3 & | get_vertex_position (uint index) const |
Get the position of a vertex by its index. More... | |
const float3 & | get_vertex_normal (uint index) const |
Get the normal value of a vertex by its index. More... | |
const float2 & | get_vertex_texture_coordinate (uint index) const |
Get the texture coordinate of a vertex by its index. More... | |
xac::Texture2D | get_texture () const |
Get the associated texture object associated to the triangle mesh. More... | |
Triangle mesh.
Declaration of the triangle mesh type info.
uint nv::index::xac::Triangle_mesh::get_light_id | ( | ) | const |
Get the associated scene light identifier.
uint nv::index::xac::Triangle_mesh::get_material_id | ( | uint | material_idx = 0u | ) | const |
Get the associated scene Phong material identifier by its index (multiple materials are possible for one triangle mesh)
xac::Texture2D nv::index::xac::Triangle_mesh::get_texture | ( | ) | const |
Get the associated texture object associated to the triangle mesh.
const float4 & nv::index::xac::Triangle_mesh::get_vertex_color | ( | uint | index | ) | const |
Get the color value for a vertex by its index.
const float3 & nv::index::xac::Triangle_mesh::get_vertex_normal | ( | uint | index | ) | const |
Get the normal value of a vertex by its index.
const float3 & nv::index::xac::Triangle_mesh::get_vertex_position | ( | uint | index | ) | const |
Get the position of a vertex by its index.
const float2 & nv::index::xac::Triangle_mesh::get_vertex_texture_coordinate | ( | uint | index | ) | const |
Get the texture coordinate of a vertex by its index.