Iray SDK API nvidia_logo_transpbg.gif Up
mi::neuraylib::Triangle_point_indices Class Reference

A triangle defined by three point indices, starting at index 0. More...

#include <itriangle_connectivity.h>

Inheritance diagram for mi::neuraylib::Triangle_point_indices:

Public Member Functions

 Triangle_point_indices ()
 The default triangle has all three indices set to zero. More...
 
 Triangle_point_indices (Uint32 e1, Uint32 e2, Uint32 e3)
 Constructs triangle from three point indices. More...
 
 Triangle_point_indices (const Triangle_point_indices_struct &other)
 Constructs triangle from underlying storage class. More...
 
Uint32operator[] (Uint32 i)
 Returns the i -th point index, where 0 <= i <= 2. More...
 
const Uint32operator[] (Uint32 i) const
 Returns the i -th point index, where 0 <= i <= 2. More...
 
int compare (const Triangle_point_indices &other) const
 Compares two triangles lexicographically. More...
 
bool operator== (const Triangle_point_indices &other) const
 Equality comparison. More...
 
bool operator!= (const Triangle_point_indices &other) const
 Inequality comparison. More...
 
bool operator< (const Triangle_point_indices &other) const
 Returns true if *this is less than other. More...
 
bool operator<= (const Triangle_point_indices &other) const
 Returns true if *this is less than or equal to other. More...
 
bool operator> (const Triangle_point_indices &other) const
 Returns true if *this is greater than other. More...
 
bool operator>= (const Triangle_point_indices &other) const
 Returns true if *this is greater than or equal to other. More...
 

Detailed Description

A triangle defined by three point indices, starting at index 0.

See also
the underlying POD type mi::neuraylib::Triangle_point_indices_struct

Constructor & Destructor Documentation

 Triangle_point_indices() [1/3]

mi::neuraylib::Triangle_point_indices::Triangle_point_indices ( )
inline

The default triangle has all three indices set to zero.

 Triangle_point_indices() [2/3]

mi::neuraylib::Triangle_point_indices::Triangle_point_indices ( Uint32  e1,
Uint32  e2,
Uint32  e3 
)
inline

Constructs triangle from three point indices.

 Triangle_point_indices() [3/3]

mi::neuraylib::Triangle_point_indices::Triangle_point_indices ( const Triangle_point_indices_struct other)
inline

Constructs triangle from underlying storage class.

Member Function Documentation

 compare()

int mi::neuraylib::Triangle_point_indices::compare ( const Triangle_point_indices other) const
inline

Compares two triangles lexicographically.

Returns
-1 if *this is less than other, 0 if *this is equal to other, or +1 if *this is greater than other.

 operator!=()

bool mi::neuraylib::Triangle_point_indices::operator!= ( const Triangle_point_indices other) const
inline

Inequality comparison.

 operator<()

bool mi::neuraylib::Triangle_point_indices::operator< ( const Triangle_point_indices other) const
inline

Returns true if *this is less than other.

 operator<=()

bool mi::neuraylib::Triangle_point_indices::operator<= ( const Triangle_point_indices other) const
inline

Returns true if *this is less than or equal to other.

 operator==()

bool mi::neuraylib::Triangle_point_indices::operator== ( const Triangle_point_indices other) const
inline

Equality comparison.

 operator>()

bool mi::neuraylib::Triangle_point_indices::operator> ( const Triangle_point_indices other) const
inline

Returns true if *this is greater than other.

 operator>=()

bool mi::neuraylib::Triangle_point_indices::operator>= ( const Triangle_point_indices other) const
inline

Returns true if *this is greater than or equal to other.

 operator[]() [1/2]

Uint32 & mi::neuraylib::Triangle_point_indices::operator[] ( Uint32  i)
inline

Returns the i -th point index, where 0 <= i <= 2.

 operator[]() [2/2]

const Uint32 & mi::neuraylib::Triangle_point_indices::operator[] ( Uint32  i) const
inline

Returns the i -th point index, where 0 <= i <= 2.