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); }
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); }