Interface class that returns the triangle mesh specific result of a query operation.
More...
#include <itriangle_mesh_query_results.h>
Inherits mi::base::Interface_declare< 0xd91ca5a9, ... >.
|
virtual void | get_vertices (mi::math::Vector_struct< mi::Float32, 3 > &v0, mi::math::Vector_struct< mi::Float32, 3 > &v1, mi::math::Vector_struct< mi::Float32, 3 > &v2) const =0 |
| Each triangle of a triangle mesh is defined by 3 vertices with their locations defined in the triangle mesh's 3D space. More...
|
|
virtual void | get_normals (mi::math::Vector_struct< mi::Float32, 3 > &n0, mi::math::Vector_struct< mi::Float32, 3 > &n1, mi::math::Vector_struct< mi::Float32, 3 > &n2) const =0 |
| A normal can be defined for each vertex of the triangle of a triangle. More...
|
|
virtual void | get_color_indices (mi::Uint32 &c0, mi::Uint32 &c1, mi::Uint32 &c2) const =0 |
| A color index can be defined for each vertex of the triangle of a triangle. More...
|
|
virtual void | get_colors (mi::math::Color_struct &c0, mi::math::Color_struct &c1, mi::math::Color_struct &c2) const =0 |
| A color can be defined for each vertex of the triangle of a triangle. More...
|
|
virtual void | get_texture_coordinates (mi::math::Vector_struct< mi::Float32, 2 > &st0, mi::math::Vector_struct< mi::Float32, 2 > &st1, mi::math::Vector_struct< mi::Float32, 2 > &st2) const =0 |
| A texture coordinate can be defined for each vertex of the triangle of a triangle. More...
|
|
Interface class that returns the triangle mesh specific result of a query operation.
The interface class sub classes from IScene_lookup_result
to provide additional results related to an entry of a ITriangle_mesh_scene_element
elements. Each entry or lookup index refers to a single triangle of the triangle mesh and the per-vertex attributes stored along with the triangle, such as the per-vertex colors. The lookup result provides the per-vertex values in counter-clockwise order.
◆ get_color_indices()
virtual void nv::index::ITriangle_mesh_lookup_result::get_color_indices |
( |
mi::Uint32 & |
c0, |
|
|
mi::Uint32 & |
c1, |
|
|
mi::Uint32 & |
c2 |
|
) |
| const |
|
pure virtual |
A color index can be defined for each vertex of the triangle of a triangle.
The call provides the per-vertex color index values.
- Parameters
-
[out] | c0 | Returns the first per-vertex color index. |
[out] | c1 | Returns the second per-vertex color index. |
[out] | c2 | Returns the third per-vertex color index. |
◆ get_colors()
virtual void nv::index::ITriangle_mesh_lookup_result::get_colors |
( |
mi::math::Color_struct & |
c0, |
|
|
mi::math::Color_struct & |
c1, |
|
|
mi::math::Color_struct & |
c2 |
|
) |
| const |
|
pure virtual |
A color can be defined for each vertex of the triangle of a triangle.
The call provides the per-vertex colors.
- Parameters
-
[out] | c0 | Returns the first per-vertex color value. |
[out] | c1 | Returns the second per-vertex color value. |
[out] | c2 | Returns the third per-vertex color value. |
◆ get_normals()
virtual void nv::index::ITriangle_mesh_lookup_result::get_normals |
( |
mi::math::Vector_struct< mi::Float32, 3 > & |
n0, |
|
|
mi::math::Vector_struct< mi::Float32, 3 > & |
n1, |
|
|
mi::math::Vector_struct< mi::Float32, 3 > & |
n2 |
|
) |
| const |
|
pure virtual |
A normal can be defined for each vertex of the triangle of a triangle.
The call provides the per-vertex normals.
- Parameters
-
[out] | n0 | Returns the first per-vertex normal. |
[out] | n1 | Returns the second per-vertex normal. |
[out] | n2 | Returns the third per-vertex normal. |
◆ get_texture_coordinates()
virtual void nv::index::ITriangle_mesh_lookup_result::get_texture_coordinates |
( |
mi::math::Vector_struct< mi::Float32, 2 > & |
st0, |
|
|
mi::math::Vector_struct< mi::Float32, 2 > & |
st1, |
|
|
mi::math::Vector_struct< mi::Float32, 2 > & |
st2 |
|
) |
| const |
|
pure virtual |
A texture coordinate can be defined for each vertex of the triangle of a triangle.
The call provides the per-vertex texture coordinate.
- Parameters
-
[out] | st0 | Returns the first per-vertex texture coordinate. |
[out] | st1 | Returns the second per-vertex texture coordinate. |
[out] | st2 | Returns the third per-vertex texture coordinate. |
◆ get_vertices()
virtual void nv::index::ITriangle_mesh_lookup_result::get_vertices |
( |
mi::math::Vector_struct< mi::Float32, 3 > & |
v0, |
|
|
mi::math::Vector_struct< mi::Float32, 3 > & |
v1, |
|
|
mi::math::Vector_struct< mi::Float32, 3 > & |
v2 |
|
) |
| const |
|
pure virtual |
Each triangle of a triangle mesh is defined by 3 vertices with their locations defined in the triangle mesh's 3D space.
The vertices are defined in counter-clockwise order.
- Parameters
-
[out] | v0 | Returns the first vertex position. |
[out] | v1 | Returns the second vertex position. |
[out] | v2 | Returns the third vertex position. |
The documentation for this class was generated from the following file: