Exemplo n.º 1
0
        public static List <Line> UnconnectedEdges(this BuildingElement element, List <BuildingElement> space)
        {
            List <Line> edges = element.Edges();

            List <Line> unconnected = new List <Line>();

            List <Line> allEdges = space.Edges();

            foreach (Line l in edges)
            {
                if (allEdges.Where(x => x.BooleanIntersection(l) != null).ToList().Count < 2)
                {
                    unconnected.Add(l);
                }
            }

            return(unconnected);
        }