Published
Edited
Mar 1, 2019
1 fork
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
}
// this doesn't work
//mutable rhino3dm = m
})
}
Insert cell
Insert cell
s = new rhino3dm.Sphere([0,0,0], 15)
Insert cell
s.diameter
Insert cell
a = new rhino3dm.Arc([0,0,0], 5, Math.PI)
Insert cell
Insert cell
c = a.toNurbsCurve()
Insert cell
c.points().get(0)
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