Published
Edited
Jul 15, 2019
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
svg`<svg width="${s}" height="${s}">${svg3d(complex.cells, complex.positions, {
view: mat4.lookAt(mat4.create(),
[n, n, n],
[n / 2, n / 2, n / 2],
[0, 1, 0]),
projection: mat4.perspective(mat4.create(),
100 * (1 / (3 * n)),
1,
0.1,
1000),
viewport: [[0, 0,], [s, s]]
})}</svg>`
Insert cell
array = {
var array = ndarray(new Float32Array(n * n * n), [n, n, n]);
fill(array, (i, j, k) => {
return Math.pow(i - n / 2, 2) + Math.pow(j - n / 2, 2) + Math.pow(k - n / 2, 2);
});
return array;
}
Insert cell
complex = surfaceNets(array, n * 3)
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