Skip to content

Commit

Permalink
Add TODO(#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeodorVecerdi committed Jan 11, 2022
1 parent f440832 commit 5b4598c
Showing 1 changed file with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,38 @@ private void FillFaceCornerMetadata() {
fcC.Vert = face.VertC;
}
}

#region HashCode Implementations

private int CalculateHashCodeElementCount() {
return HashCode.Combine(vertices.Count, edges.Count, faces.Count, faceCorners.Count);
}

private int CalculateHashCodeAttributeCount() {
return HashHelpers.Combine(
CalculateHashCodeElementCount(),
HashCode.Combine(
attributeManager.VertexAttributes.Count,
attributeManager.EdgeAttributes.Count,
attributeManager.FaceAttributes.Count,
attributeManager.FaceCornerAttributes.Count
)
);
}

private int CalculateHashCodeAttributeValues() {
// TODO(#19): Implement CalculateHashCodeAttributeValues
// Located in `GeometryData.cs`
return 0;
}

private int CalculateHashCodeFull() {
// TODO: Implement CalculateHashCodeFull
// Located in `GeometryData.cs`
return 0;
}

#endregion

public void OnBeforeSerialize() {
}
Expand All @@ -170,4 +202,4 @@ public void OnAfterDeserialize() {
attributeManager.SetOwner(this);
}
}
}
}

0 comments on commit 5b4598c

Please sign in to comment.