mbostock/d3 — pull request #970 by jasondavies (2012-12-18 00:13:49+00:00)
Title: Fix CCW polygon detection issue.

The south pole rotation introduced precision issues for small polygons that ended up at the south pole, so this has been temporarily removed.

The south pole rotation was required to detect polygons winding around the clip edge, but this is rare in practice, so it shouldn't be an issue while I find a permanent fix.

I also reduced the negative ε for negative areas to 1e-6, since the approximation should hold true even for tiny polygons, and this worked fine in the rotation test.

Lastly, I removed a redundant variable from d3.geo.area.