Example #1
0
        public static void Morph(List <Dictionary <Guid, PartMorphInfo> > morphingList, RenderMesh mesh)
        {
            var morphInfos = new List <PartMorphInfo>();

            foreach (var part in mesh.Parts)
            {
                morphInfos.Clear();
                morphInfos.AddRange(from m in morphingList
                                    where m.ContainsKey(part.Guid)
                                    select m[part.Guid]);
                MorphPart(part, morphInfos.Where(mi => Math.Abs(mi.Delta) > MinFloat).ToList());
            }
        }