Class representing a triangular face, used as key in caching hash map in SplitterTetra. More...
#include <SplitterTetra.hxx>
Public Member Functions | |
| TriangleFaceKey (int node1, int node2, int node3) | |
| Constructor Sorts the given nodes (so that the order in which they are passed does not matter) and calculates a hash value for the key. | |
| bool | operator== (const TriangleFaceKey &key) const |
| Equality comparison operator. | |
| int | hashVal () const |
| Returns a hash value for the object, based on its three nodes. | |
| void | sort3Ints (int *sorted, int node1, int node2, int node3) |
| Method to sort three integers in ascending order. | |
Private Attributes | |
| int | _nodes [3] |
| global numbers of the three nodes, sorted in ascending order | |
| int | _hashVal |
| hash value for the object, calculated in the constructor | |
Class representing a triangular face, used as key in caching hash map in SplitterTetra.
Constructor Sorts the given nodes (so that the order in which they are passed does not matter) and calculates a hash value for the key.
| node1 | global number of the first node of the face |
| node2 | global number of the second node of the face |
| node3 | global number of the third node of the face |
References INTERP_KERNEL.TriangleFaceKey._hashVal, INTERP_KERNEL.TriangleFaceKey._nodes, and INTERP_KERNEL.TriangleFaceKey.sort3Ints().
| bool INTERP_KERNEL.TriangleFaceKey.operator== | ( | const TriangleFaceKey & | key | ) | const |
Equality comparison operator.
Compares this TriangleFaceKey object to another and determines if they represent the same face.
| key | TriangleFaceKey with which to compare |
References INTERP_KERNEL.TriangleFaceKey._nodes.
| int INTERP_KERNEL.TriangleFaceKey.hashVal | ( | ) | const |
Returns a hash value for the object, based on its three nodes.
This value is not unique for each face.
References INTERP_KERNEL.TriangleFaceKey._hashVal.
Method to sort three integers in ascending order.
| sorted | int[3] array in which to store the result |
| x1 | first integer |
| x2 | second integer |
| x3 | third integer |
References TestMedCorba2.x1, TestMedCorba2.x2, and TestMedCorba2.x3.
int INTERP_KERNEL.TriangleFaceKey._nodes[3] [private] |
global numbers of the three nodes, sorted in ascending order
int INTERP_KERNEL.TriangleFaceKey._hashVal [private] |
hash value for the object, calculated in the constructor