Changeset 341

Show
Ignore:
Timestamp:
05/27/08 05:11:17 (6 months ago)
Author:
FeepingCreature
Message:
  • Increased buffer zone
  • Removed redundant outside
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/qd/test13.d

    r337 r341  
    5959    else return White; 
    6060  } 
    61   bool outside(float d) { return (abs(d) > 5); } 
    6261  void fill_quad(vec2f tl, vec2f br) { 
    6362    for (int x = cast(int) tl.x; x < br.x; ++x) 
     
    7271    } 
    7372    void try_desc(vec2f new_tl, vec2f new_br, float[4] dists) { 
    74       if (outside(dists[0]) && outside(dists[1]) && outside(dists[2]) && outside(dists[3])) { 
    75         if (df.same_sideclass(new_tl, new_br, (float f) { if (abs(f) > 5f) return (f>0)?-float.infinity:float.infinity; else return f; })) { 
    76           line(new_tl.tuple, new_br.tuple, Box=Blue, Fill=Black); 
    77           return; 
    78         } 
     73      if (df.same_sideclass(new_tl, new_br, (float f) { if (abs(f) >= 6f) return (f>0)?-float.infinity:float.infinity; else return f; })) { 
     74        line(new_tl.tuple, new_br.tuple, Fill=color(dists[0])); 
     75        return; 
    7976      } 
    8077      if (maxdepth) fill_quad(new_tl, new_br);