Exemple #1
0
        public bool Overlaps(BackgroundImage image)
        {
            // Get the first image block:
            MeshBlock block = image.FirstBlock;

            if (block == null || FirstBlock == null)
            {
                return(false);
            }

            // Check if images verts are contained within any of mine.
            MeshBlock current = FirstBlock;

            while (current != null)
            {
                if (current.Overlaps(block))
                {
                    return(true);
                }

                current = current.LocalBlockAfter;
            }

            return(false);
        }