Click or drag to resize

FaceGetHashCode Method

[This is preliminary documentation and is subject to change.]

Calculates the hashcode of this object

Namespace:  ModelExchanger.AnalysisDataModel.Subtypes
Assembly:  ModelExchanger.AnalysisDataModel (in ModelExchanger.AnalysisDataModel.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public override int GetHashCode()

Return Value

Type: Int32
The hashcode of this object
Remarks
Because we use the hashcode of the index of a loop in Loops, it is possible to get the same hashcode of 2 separate Face instances, using the same data in their loops. If we do not include the hashcode of the index of the loop, we end up with the same hashcode for faces that use the exact same vertex indexes, but not in similar loops. e.g. new Face(new [] { new [] { 0, 1, 2}, new [] { 3, 4, 5} }) would have the same hashcode as new Face(new [] { new [] { 0, 1, 2, 3, 4, 5} }) If we were to use the hashcode of the loop itself, then it is not possible to get the same hashcode for equal faces e.g. new Face(new [] { new [] { 0, 1, 2} }) would not have the same hashcode as new Face(new [] { new [] { 0, 1, 2}}), but they are equal.
See Also