Represents a reference to a triangle in the triangle mesh. More...
Inherits IEquatable< TriangleReference >.
Public Member Functions | |
TriangleReference (int index, bool isMany) | |
Initializes a new instance of the TriangleReference struct. More... | |
override bool | Equals (object obj) |
Checks if this instance is equal to another object. More... | |
bool | Equals (TriangleReference other) |
Checks if this instance is equal to another TriangleReference. More... | |
override int | GetHashCode () |
Overrides the hash code generation of this type. More... | |
Static Public Member Functions | |
static bool | operator!= (TriangleReference a, TriangleReference b) |
Checks if two TriangleReference instances are not equal. More... | |
static bool | operator== (TriangleReference a, TriangleReference b) |
Checks if two TriangleReference instances are equal. More... | |
static void | Serialize (void *p, IDeterministicFrameSerializer serializer) |
Serializes a TriangleReference into an instance of IDeterministicFrameSerializer. More... | |
Static Public Attributes | |
const int | ALIGNMENT = 4 |
The struct alignment in bytes. More... | |
const int | SIZE = sizeof(Int32) * 2 |
The size of the struct in bytes. More... | |
Properties | |
int | Index [get] |
The index of the triangle. More... | |
bool | IsMany [get] |
If this reference point to multiple triangles. More... | |
bool | IsValid [get] |
If this triangle reference is valid. More... | |
Represents a reference to a triangle in the triangle mesh.
|
inline |
Initializes a new instance of the TriangleReference struct.
index | The index of the referenced triangle. |
isMany | If the reference point to multiple triangles.
|
|
inline |
Checks if this instance is equal to another TriangleReference.
other | The other triangle reference to be checked against. |
true
if the triangle references are equal. false
otherwise.
|
inline |
Checks if this instance is equal to another object.
obj | The object to be checked against. |
true
if the object is a TriangleReference and they are equal to each other. false
otherwise.
|
inline |
Overrides the hash code generation of this type.
|
inlinestatic |
Serializes a TriangleReference into an instance of IDeterministicFrameSerializer.
p | The pointer to the TriangleReference. |
serializer | The IDeterministicFrameSerializer instance into which the struct will be serialized. |
|
inlinestatic |
Checks if two TriangleReference instances are equal.
a | |
b |
true
if equal. false
if not.
|
inlinestatic |
Checks if two TriangleReference instances are not equal.
a | |
b |
true
if not equal. false
if equal.
|
static |
The size of the struct in bytes.
|
static |
The struct alignment in bytes.
|
get |
The index of the triangle.
|
get |
If this triangle reference is valid.
|
get |
If this reference point to multiple triangles.