Platform
Resources
Pricing
Sign in
Get started
Brian Spilsbury
Workspace
Fork
Published
By
Brian Spilsbury
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
bearStl
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
angle
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
bear
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
thickness
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sections
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
a4_pages
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML