public XbimMeshFragmentCollection Excluding <T>()
        {
            XbimMeshFragmentCollection results = new XbimMeshFragmentCollection();

            results.AddRange(this.Where(frag => !(typeof(T).IsAssignableFrom(frag.EntityType))));
            return(results);
        }
Beispiel #2
0
        /// <summary>
        /// Retrieves all the mesh fragments for the specified entity in this scene
        /// </summary>
        /// <param name="entityLabel"></param>
        /// <returns></returns>
        public XbimMeshFragmentCollection GetMeshFragments(int entityLabel)
        {
            var fragments = new XbimMeshFragmentCollection();

            foreach (var layer in Layers)
            {
                fragments.AddRange(layer.GetMeshFragments(entityLabel));
            }
            return(fragments);
        }
 public XbimMeshFragmentCollection(XbimMeshFragmentCollection value)
     : base(value)
 {
 }