Skip to content

Commit

Permalink
undo comment edits
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock authored and Fil committed Aug 21, 2023
1 parent 09e05da commit e285c59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/marks/delaunay.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,14 @@ class DelaunayLink extends Mark {
for (const k in channels) newChannels[k].push(channels[k][tj]);
}

// TODO move to initializer?
const {halfedges, hull, triangles} = Delaunay.from(index, xi, yi);
// inner edges
for (let i = 0; i < halfedges.length; ++i) {
// inner edges
const j = halfedges[i];
if (j > i) link(triangles[i], triangles[j]);
}
// convex hull
for (let i = 0; i < hull.length; ++i) {
// convex hull
link(hull[i], hull[(i + 1) % hull.length]);
}

Expand Down Expand Up @@ -164,7 +163,6 @@ class AbstractDelaunayMark extends Mark {
const yi = Y ? (i) => Y[i] : constant(cy);
const mark = this;

// TODO move to initializer?
function mesh(index) {
const delaunay = Delaunay.from(index, xi, yi);
select(this)
Expand Down

0 comments on commit e285c59

Please sign in to comment.