Published
Edited
Feb 10, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
bearStl = readStl('bear.stl', { src: 'https://jsxcad.js.org/stl/bear.stl' });
Insert cell
Insert cell
Insert cell
bear = bearStl.center().rotateZ(angle);
Insert cell
Insert cell
Insert cell
viewof thickness = html`<input type=number min=0.1 max=10 value=4.7 step=0.1>`
Insert cell
Insert cell
sections = bear.section(...numbers(n => Z(n), { from: bear.size().min[2], to: bear.size().max[2], by: thickness }));

Insert cell
Insert cell
Insert cell
a4_pages = sections.outline().squash().Page({ size: [297, 210] });
Insert cell
Insert cell
Insert cell
{
writePdf(a4_pages, 'bear');
return downloadAsZip('bear');
}
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