Published
Edited
Jan 31, 2021
15 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function next_halfedge(e) { return (e % 3 == 2) ? e-2 : e+1; }
Insert cell
function prev_halfedge(e) { return (e % 3 == 0) ? e+2 : e-1; }
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function starts(delaunator) {
let index = []; // point id to half-edge id
for (let e = 0; e < delaunator.triangles.length; e++) {
index[delaunator.triangles[e]] = e;
}
return index;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function t_vertex(points, delaunator, t) {
let a = points[delaunator.triangles[3*t]],
b = points[delaunator.triangles[3*t + 1]],
c = points[delaunator.triangles[3*t + 2]];
return circumcenter(a, b, c);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more