private void WriteMorphTargetList(MorphTargetList morphTargets) { WriteInt(morphTargets.Flags); WriteInt(morphTargets.Count); foreach (var morphTarget in morphTargets) { WriteMorphTarget(morphTarget); } }
private void CompareMorphTargetLists(MorphTargetList a, MorphTargetList b) { if (a == null || b == null) { Assert.IsTrue(a == null ? (b == null) : (b != null)); return; } Assert.AreEqual(a.Flags, b.Flags); for (int i = 0; i < a.Count; i++) { Assert.AreEqual(a[i].Flags, b[i].Flags); Assert.AreEqual(a[i].VertexCount, b[i].VertexCount); CollectionAssert.AreEqual(a[i].Vertices, b[i].Vertices); } }