Any live examples of Rhino.js

(Charles) #1

I can see there are some examples here but are any of them available to see live?

I’m looking for a framework to build a webapp that processes meshes, some key functions would be:

  • Generating curves based on meshes
  • Mesh modifications, solving intersections between planes and meshes - for example.
  • Import/export 3D file.

Would Rhino Compute be a viable solution? If not, does someone know of an alternative?

1 Like

(Dale Fugier) #2

Here are a few:

https://codepen.io/dalefugier/

https://files.mcneel.com/rhino3dm/js/latest/rhino3dm.html

https://files.mcneel.com/rhino3dm/js/latest/rhinologo.html

To get an auth token, go here:

https://www.rhino3d.com/compute/login

Hopefully. Rhino.js is pretty and there is a lot left to expose.

– Dale

2 Likes

(Greg Burgreen) #3

Brilliant.

So, the key pieces are: rhino3dm.js, the wasm, and the compute server.

What roles do each play, particularly the wasm piece?

0 Likes

(Dale Fugier) #4

Hi @greg.burgreen,

Basically:

1.) The wasm is openNURBS build as web assembly.
2.) rhino3dm.js is the JavaScript interface into the wasm.
3.) Rhino.Compute is only required for access to functions not found in openNURBS.

– Dale

1 Like

(Greg Burgreen) #5

Hi Dale,

For larger applications, will DocObjects be stored locally or on the Rhino.Compute server?

Greg

0 Likes

(Dale Fugier) #6

Hi @greg.burgreen,

Rhino.Compute only provides computation services - it won’t serialize any objects.

– Dale

1 Like