Prev: C785 Up: Map Next: C869
C833: What to do about a pair of boxes
27 routine addresses, indexed by the Z code (0 the candidate above, 1 overlapping, 2 IY above) + the V code (0 the candidate further back, 3 overlapping, 6 IY further back) + the U code (0 IY further back, 9 overlapping, 18 the candidate further back), as SORT_AND_DRAW works them out. "Further back" is smaller U, larger V, lower Z. The table is Knight Lore's and Pentagram's, entry for entry.
Four outcomes. IY_GOES_FIRST when IY is behind or level with the candidate on all three axes and strictly behind on at least one: IY must be drawn first. CANDIDATE_ALREADY_FIRST for the mirror image, where the candidate is behind IY and is being drawn first anyway. ORDER_UNCONSTRAINED where each is in front of the other on some axis, which says nothing about their order. BOXES_INTERSECT, index 13, for boxes that overlap on every axis.
DEPTH_ORDER C833 DEFW ORDER_UNCONSTRAINED 0 (Z0 V0 U0): no constraint; 1 (Z1 V0 U0): no constraint; 2 (Z2 V0 U0): no constraint; 3 (Z0 V3 U0): IY first
C835 DEFW ORDER_UNCONSTRAINED
C837 DEFW ORDER_UNCONSTRAINED
C839 DEFW IY_GOES_FIRST
C83B DEFW IY_GOES_FIRST 4 (Z1 V3 U0): IY first; 5 (Z2 V3 U0): no constraint; 6 (Z0 V6 U0): IY first; 7 (Z1 V6 U0): IY first
C83D DEFW ORDER_UNCONSTRAINED
C83F DEFW IY_GOES_FIRST
C841 DEFW IY_GOES_FIRST
C843 DEFW ORDER_UNCONSTRAINED 8 (Z2 V6 U0): no constraint; 9 (Z0 V0 U9): no constraint; 10 (Z1 V0 U9): candidate first; 11 (Z2 V0 U9): candidate first
C845 DEFW ORDER_UNCONSTRAINED
C847 DEFW CANDIDATE_ALREADY_FIRST
C849 DEFW CANDIDATE_ALREADY_FIRST
C84B DEFW IY_GOES_FIRST 12 (Z0 V3 U9): IY first; 13 (Z1 V3 U9): the boxes intersect; 14 (Z2 V3 U9): candidate first; 15 (Z0 V6 U9): IY first
C84D DEFW BOXES_INTERSECT
C84F DEFW CANDIDATE_ALREADY_FIRST
C851 DEFW IY_GOES_FIRST
C853 DEFW IY_GOES_FIRST 16 (Z1 V6 U9): IY first; 17 (Z2 V6 U9): no constraint; 18 (Z0 V0 U18): no constraint; 19 (Z1 V0 U18): candidate first
C855 DEFW ORDER_UNCONSTRAINED
C857 DEFW ORDER_UNCONSTRAINED
C859 DEFW CANDIDATE_ALREADY_FIRST
C85B DEFW CANDIDATE_ALREADY_FIRST 20 (Z2 V0 U18): candidate first; 21 (Z0 V3 U18): no constraint; 22 (Z1 V3 U18): candidate first; 23 (Z2 V3 U18): candidate first
C85D DEFW ORDER_UNCONSTRAINED
C85F DEFW CANDIDATE_ALREADY_FIRST
C861 DEFW CANDIDATE_ALREADY_FIRST
C863 DEFW ORDER_UNCONSTRAINED 24 (Z0 V6 U18): no constraint; 25 (Z1 V6 U18): no constraint; 26 (Z2 V6 U18): no constraint
C865 DEFW ORDER_UNCONSTRAINED
C867 DEFW ORDER_UNCONSTRAINED
Prev: C785 Up: Map Next: C869