Skip to content

Commit

Permalink
killing off inner soddy circle (not tangential to outer soddy circle)…
Browse files Browse the repository at this point in the history
… at a lower power
  • Loading branch information
EnotionZ committed Jul 26, 2011
1 parent c4b9003 commit 34dd627
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions apollonian_gasket/ag.js
Expand Up @@ -112,17 +112,18 @@

if(c.r < 0) return;

ag(c1, c2, c, q, lvl);
if(lvl < LEVEL-1) ag(c1, c2, c, q, lvl);
} else {
if(lvl < LEVEL-1) {
var c = getSoddyCircle(c1, c2, c3, q, lvl)

var c = getSoddyCircle(c1, c2, c3, q, lvl)
if(c.r < 0) return;

if(c.r < 0) return;

drawCurvature(c);
ag(c1, c2, c, q, lvl);
ag(c2, c3, c, q, lvl);
ag(c1, c, c3, q, lvl);
drawCurvature(c);
ag(c1, c2, c, q, lvl);
ag(c2, c3, c, q, lvl);
ag(c1, c, c3, q, lvl);
}
}
return false;
};
Expand All @@ -145,8 +146,8 @@
ag(s.cBottom, s.cLeft, 'edge', 'bl', 1);
ag(s.cBottom, s.cRight, 'edge', 'br', 1);

ag(s.cTop, s.cBottom, s.cRight, 'tr', 3);
ag(s.cTop, s.cLeft, s.cBottom, 'l', 3);
ag(s.cTop, s.cBottom, s.cRight, 'tr', 1);
ag(s.cTop, s.cLeft, s.cBottom, 'l', 1);
}
}, false);

Expand Down

0 comments on commit 34dd627

Please sign in to comment.