Exemplo n.º 1
0
        public static List <Space> AdjacentSpaces(this BuildingElement element, List <List <BuildingElement> > besAsSpace, List <Space> spaces)
        {
            List <Space> rtn = new List <oM.Environment.Elements.Space>();

            List <Point> spaces1 = element.AdjacentSpaces(besAsSpace).SpaceCentres();

            foreach (Point p in spaces1)
            {
                Space add = spaces.MatchSpace(p);
                if (add != null)
                {
                    rtn.Add(add);
                }
            }

            return(rtn);
        }