Marko,
Not sure, but the active triangle list al
should be modified to contain ymax of
each triangle.
al (list (list xmax cp r sl))
;Initialize the Active Triangle list ;
; al, List contains active triangles defined by 4 items: ;
; item 0: Xmax of points in triangle. ;
; item 1: Center of circle circumscribing triangle. ;
; item 2: Radius of above circle. ;
; item 3: List of 3 vertices defining the triangle. ;
ymg