示例#1
0
            private bool NonIntersectingFillsContains(Ring2 other)
            {
                Contract.Requires(other != null);

                foreach (var node in _nodes)
                {
                    if (other.NonIntersectingWithin(node.Ring))
                    {
                        return(node.Count <= 0 || node.NonIntersectingContains(other));
                    }
                }
                return(false);
            }
示例#2
0
            private bool NonIntersectingHolesContains(Ring2 other)
            {
                Contract.Requires(other != null);

                foreach (var node in _nodes)
                {
                    if (!other.NonIntersectingWithin(node.Ring))
                    {
                        return(node.Count > 0 && node.NonIntersectingContains(other));
                    }
                }
                return(Count > 0);
            }