예제 #1
0
        private static IEnumerable <An8Mesh> EnumMeshes(An8Component component)
        {
            var mesh = component as An8Mesh;

            if (mesh != null)
            {
                yield return(mesh);
            }

            var group = component as An8Group;

            if (group != null)
            {
                foreach (var subMesh in group.Components.SelectMany(t => Converter.EnumMeshes(t)))
                {
                    yield return(subMesh);
                }
            }
        }
예제 #2
0
        private static IEnumerable<An8Mesh> EnumMeshes(An8Component component)
        {
            var mesh = component as An8Mesh;

            if (mesh != null)
            {
                yield return mesh;
            }

            var group = component as An8Group;

            if (group != null)
            {
                foreach (var subMesh in group.Components.SelectMany(t => Converter.EnumMeshes(t)))
                {
                    yield return subMesh;
                }
            }
        }