Platform
Resources
Pricing
Sign in
Get started
Will Pearson
Workspace
Fork
Published
rhino3dm + compute
By
Will Pearson
Edited
Jun 17, 2019
Fork of
Using rhino3dm in Observable
•
2 forks
5 stars
Insert cell
Insert cell
Insert cell
rhino3dm_module
=
require
(
'rhino3dm@0.1.9'
)
Insert cell
Insert cell
mutable
rhino3dm
=
null
Insert cell
Insert cell
{
rhino3dm_module
(
)
.
then
(
(
m
)
=>
{
// this is janky but it's best we've got, currently
mutable
rhino3dm
=
{
Sphere
:
m
.
Sphere
,
Arc
:
m
.
Arc
,
Point3dList
:
m
.
Point3dList
,
NurbsCurve
:
m
.
NurbsCurve
}
// this doesn't work
//mutable rhino3dm = m
}
)
return
rhino3dm
===
null
?
false
:
true
}
Insert cell
Insert cell
s
=
new
rhino3dm
.
Sphere
(
[
0
,
0
,
0
]
,
15
)
Insert cell
s
.
diameter
Insert cell
Insert cell
a
=
new
rhino3dm
.
Arc
(
[
150
,
50
,
0
]
,
100
,
0.8
*
Math
.
PI
)
Insert cell
Insert cell
c
.
points
(
)
.
get
(
0
)
Insert cell
Insert cell
Insert cell
Insert cell
curve
=
{
const
points
=
new
rhino3dm
.
Point3dList
(
)
;
points
.
add
(
20
,
50
,
0
)
;
points
.
add
(
100
,
180
,
0
)
;
points
.
add
(
200
,
20
,
0
)
;
points
.
add
(
250
,
150
,
0
)
;
points
.
add
(
350
,
140
,
0
)
;
points
.
add
(
400
,
100
,
0
)
;
points
.
add
(
480
,
30
,
0
)
;
points
.
add
(
520
,
170
,
0
)
;
points
.
add
(
570
,
170
,
0
)
;
const
curve
=
rhino3dm
.
NurbsCurve
.
create
(
false
,
3
,
points
)
;
return
curve
;
}
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
Compare fork
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
rhino3dm_module
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
rhino3dm
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
s
Add comment
Copy import
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
a
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
c
Edit
Add comment
Copy import
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
drawCurve
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nurbscurve
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
curve
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML