예제 #1
0
        private void WriteMorphTargetList(MorphTargetList morphTargets)
        {
            WriteInt(morphTargets.Flags);
            WriteInt(morphTargets.Count);

            foreach (var morphTarget in morphTargets)
            {
                WriteMorphTarget(morphTarget);
            }
        }
예제 #2
0
        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);
            }
        }