예제 #1
0
        public List <BSPPortal> PurgePortals()
        {
            var portals = new List <BSPPortal>();

            if (PosNode != null)
            {
                portals.AddRange(PosNode.PurgePortals());
                PosNode = null;
            }

            if (NegNode != null)
            {
                portals.AddRange(NegNode.PurgePortals());
                NegNode = null;
            }
            return(portals);
        }
예제 #2
0
 public void RemoveNonPortalNodes()
 {
     RootNode.LinkPortals(RootNode.PurgePortals());
 }