#include <simplemesh.h>
Template class for simple triangles/quadrangles. The class stores 4 indices. In case of a quadrangle the third and fourth are identical.
Public Member Functions | |
| Poly () | |
| Poly (ENUM_DONT_INITIALIZE) | |
| Poly (const T &av, const T &bv, const T &cv) | |
| Poly (const T &av, const T &bv, const T &cv, const T &dv) | |
| Poly (const Poly &src) | |
| MAXON_OPERATOR_COPY_ASSIGNMENT (Poly) | |
| T & | operator[] (Int index) |
| const T & | operator[] (Int index) const |
| Bool | IsTriangle () const |
| Int | FindCornerIndex (const T &value) const |
| COMPARERESULT | Compare (const Poly< T > &other) const |
| Int | FindEdge (const T &value1, const T &value2) const |
| void | GetEdgeValues (Int edge, T &av, T &bv) const |
| Int | GetMemorySize () const |
| MAXON_OPERATOR_EQUALITY_HASHCODE (Poly, a, b, c, d) | |
| String | ToString (const FormatStatement *formatStatement=nullptr) const |
| const Block< const T > | ToBlock () const |
Static Public Member Functions | |
| static Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Public Attributes | |
| T | a |
| T | b |
| T | c |
| T | d |
| Poly | ( | ) |
|
explicit |
| Poly | ( | const T & | av, |
| const T & | bv, | ||
| const T & | cv | ||
| ) |
| Poly | ( | const T & | av, |
| const T & | bv, | ||
| const T & | cv, | ||
| const T & | dv | ||
| ) |
| MAXON_OPERATOR_COPY_ASSIGNMENT | ( | Poly< T > | ) |
| T& operator[] | ( | Int | index | ) |
| const T& operator[] | ( | Int | index | ) | const |
| Bool IsTriangle | ( | ) | const |
| Int FindCornerIndex | ( | const T & | value | ) | const |
| COMPARERESULT Compare | ( | const Poly< T > & | other | ) | const |
| Int FindEdge | ( | const T & | value1, |
| const T & | value2 | ||
| ) | const |
| void GetEdgeValues | ( | Int | edge, |
| T & | av, | ||
| T & | bv | ||
| ) | const |
| Int GetMemorySize | ( | ) | const |
| String ToString | ( | const FormatStatement * | formatStatement = nullptr | ) | const |
| const Block<const T> ToBlock | ( | ) | const |
|
static |
Describe all elements of this class for I/O operations.
| [in] | stream | The stream that is used to register the class members. |
| T a |
| T b |
| T c |
| T d |