Rhino3dm.js demo?

Could anyone point me to a working example using Rhino3dm.js.

I see this:

<html>
  <!-- stuff -->
  <body>
    <script async type="text/javascript" src="https://files.mcneel.com/rhino3dm/js/latest/rhino3dm.js"></script>
    <!-- more stuff -->
  </body>
</html>

But that’s just adding the library to the html file.
What do I have to do next?
Use HTML5 canvas or something?
I don’t understand.

https://github.com/mcneel/rhino3dm/tree/master/samples/javascript

Here’s a codepen example

https://codepen.io/stevebaer/pen/pxQOeQ

3 Likes

Thanks @stevebaer

@dale, I could not make these examples in github to work.

Uh oh… I’ve logged a bug

1 Like