} // end GetLeftNeighbours List<OverlapRemovalNode> GetRightNeighbours(OverlapRemovalParameters parameters, ScanLine scanLine, OverlapRemovalNode currentNode, bool isHorizontal) { var lstNeighbours = new List<OverlapRemovalNode>(); OverlapRemovalNode nextNode = scanLine.NextRight(currentNode); for (; null != nextNode; nextNode = scanLine.NextRight(nextNode)) { // AddNeighbor returns false if we are done adding them. if (!AddNeighbour(parameters, currentNode, nextNode, lstNeighbours, false /* isLeftNeighbor */ , isHorizontal)) { if (!nextNode.DeferredRightNeighborToV) { break; } } } // endfor NextLeft return lstNeighbours; } // end GetRightNeighbours