The Rhino Inside® technology allows Rhino and Grasshopper to be embedded within other products.
This sample shows how to run Rhino from Electron
.
This sample extends Sample 1 and 2 by using Electron for UI. Geometry rendered with three.js.
The sample has been tested on Windows 10, Rhino 7 WIP, and Node.js 8.11.12 (though should work on more recent versions of Node.js)
There are two projects in this sample:
InsideElectron.csproj
- Compiles to a .net Core 2.0 class library with one class and several methods. This class contains the code to start Rhino.InsideElectronApp
- The Electron app that provides a GUI and launches Rhino and Grasshopper from JavaScript.
Rhino 7 WIP
(Required install)RhinoInside NuGet
(Referenced in the csproj)Node.js (8.11.2 or newer)
(Required install)edge.js (^11.3.1)
(Referenced via npm)Electron.js
(Referenced via npm)rhino3dm.js
(Referenced via URL)three.js
(Referenced via URL)
This assumes you've already installed Rhino 7 WIP and Node.js for Windows, and have cloned the Rhino.Inside repository.