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); }
public void RemoveNonPortalNodes() { RootNode.LinkPortals(RootNode.PurgePortals()); }