Skip to content

Commit

Permalink
reverting de77a8d : for edges > 180° we'll have to add an intermediat…
Browse files Browse the repository at this point in the history
…e point
  • Loading branch information
Fil committed Sep 2, 2019
1 parent 45d3e8b commit daf7b88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/voronoi.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function geoVoronoi(data) {
tri.center = v.delaunay.centers[index];
return tri;
})
//.filter(tri => excess(tri) > 0)
.filter(tri => excess(tri) > 0)
.map(tri => ({
type: "Feature",
properties: {
Expand Down
2 changes: 1 addition & 1 deletion test/geo-voronoi-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ tape("geoVoronoi.links(sites) returns links.", function(test) {
tape("geoVoronoi.triangles(sites) returns geojson.", function(test) {
const tri = geoVoronoi.geoVoronoi().triangles(sites);
test.equal(tri.type, "FeatureCollection");
test.equal(tri.features.length, 2);
test.equal(tri.features.length, 1);
test.end();
});

Expand Down

0 comments on commit daf7b88

Please sign in to comment.