NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::xac::Triangle_mesh Class Reference

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...
 

Detailed Description

Triangle mesh.

Member Typedef Documentation

 Base_info_type

Declaration of the triangle mesh type info.

Member Function Documentation

 get_light_id()

uint nv::index::xac::Triangle_mesh::get_light_id ( ) const

Get the associated scene light identifier.

 get_material_id()

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)

 get_texture()

xac::Texture2D nv::index::xac::Triangle_mesh::get_texture ( ) const

Get the associated texture object associated to the triangle mesh.

 get_vertex_color()

const float4 & nv::index::xac::Triangle_mesh::get_vertex_color ( uint  index) const

Get the color value for a vertex by its index.

 get_vertex_normal()

const float3 & nv::index::xac::Triangle_mesh::get_vertex_normal ( uint  index) const

Get the normal value of a vertex by its index.

 get_vertex_position()

const float3 & nv::index::xac::Triangle_mesh::get_vertex_position ( uint  index) const

Get the position of a vertex by its index.

 get_vertex_texture_coordinate()

const float2 & nv::index::xac::Triangle_mesh::get_vertex_texture_coordinate ( uint  index) const

Get the texture coordinate of a vertex by its index.


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