Beispiel #1
0
        private void updateEdgeList(int line, ref SortedDoublyLinkedList <CActiveEdge> ae)
        {
            var p = ae.First;

            while (p != null)
            {
                if (line >= p.Value.YUper)
                {
                    ae.Remove(p);
                }
                else
                {
                    p.Value.XIntersection += p.Value.ReciSlope;
                }
                p = p.Next;
            }
        }
Beispiel #2
0
        private void updateEdgeList(int line, ref SortedDoublyLinkedList<CActiveEdge> ae)
        {
            var p = ae.First;

            while (p != null)
            {
                if (line >= p.Value.YUper)
                {
                    ae.Remove(p);
                }
                else
                    p.Value.XIntersection += p.Value.ReciSlope;
                p = p.Next;
            }
        }