-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
126 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Rhino.Inside CEF | ||
Sample showing how to start Rhino and Grasshopper from a winforms app with a CEF control. | ||
|
||
 | ||
|
||
|
||
## Requirements | ||
- [Rhino 7 for Windows](https://www.rhino3d.com/download/rhino-for-windows/7/latest) | ||
- [node.js and npm](https://nodejs.org/en/) (tested on node version 12.18.0 and npm 6.14.4) | ||
|
||
## Dependencies | ||
- [CEFSharp](https://github.com/cefsharp/CefSharp) - [version 86.0.241] Used to host the UI, and javascript. | ||
- [rhino3dm.js](https://www.npmjs.com/package/rhino3dm) - [version 0.13.0] Used to decode data from .net | ||
- [three.js](https://threejs.org) - [version 123] Used to display the geometry coming from Rhino.. | ||
- .net [version 4.8] | ||
- [Rhino.Inside](https://www.nuget.org/packages/Rhino.Inside/) - [version 7.0.0] - Used to resolve Rhino related assemblies. | ||
- [RhinoTaskManager Library](../SampleRhinoInsideJavascriptTaskManagerLib) - .net library that opens up Rhino. | ||
|
||
## Usage | ||
1. This assumes you've installed node.js and Rhino 7. | ||
2. Clone this repository and open the `SampleRhinoInsideCEF.sln` in Visual Studio 2019. | ||
3. Start the application. | ||
4. A winforms window will appear, then the GH Editor. Place some components onto the GH canvas to see them rendered on the js canvas hosted in CEF. This might take some time to start depending on the number of plugins installed in Rhino and GH. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
rhino.inside/javascript/SampleRhinoInsideElectronApp/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Rhino.Inside Electron | ||
Sample showing how to start Rhino from Electron | ||
|
||
 | ||
|
||
## Requirements | ||
- [Rhino 7 for Windows](https://www.rhino3d.com/download/rhino-for-windows/7/latest) | ||
- [node.js and npm](https://nodejs.org/en/) (tested on node version 12.18.0 and npm 6.14.4) | ||
|
||
## Dependencies | ||
- [electron-edge.js](https://www.npmjs.com/package/electron-edge-js) - [version 12.16.3] Used to communicate between .net and node.js. | ||
- [rhino3dm.js](https://www.npmjs.com/package/rhino3dm) - [version 0.13.0] Used to decode data from .net | ||
- [three.js](https://threejs.org) - [version 123] Used to display the geometry coming from Rhino in the Electron app. | ||
- [Electron](https://www.electronjs.org/) - [version 5.0.13] Used to host the application, UI, and javascript. | ||
- .net [version 4.8] | ||
- [Rhino.Inside](https://www.nuget.org/packages/Rhino.Inside/) - [version 7.0.0] - Used to resolve Rhino related assemblies. | ||
- [RhinoMethods Library](../SampleRhinoInsideJavascriptMethodsLib) - .net library that opens up Rhino. | ||
|
||
## Usage | ||
1. This assumes you've installed node.js and Rhino 7, and have built the RhinoMethods library. | ||
2. Clone this repository. Open a terminal to the cloned repository directory. | ||
3. Install dependencies: `npm i`. | ||
4. Start app: `npm run start`. | ||
5. An electron app will appear and eventually a wireframe render of a sphere. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
rhino.inside/javascript/SampleRhinoInsideElectronAppGH/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Rhino.Inside Electron + GH | ||
Sample showing how to start Rhino and Grasshopper from Electron | ||
|
||
 | ||
|
||
|
||
## Requirements | ||
- [Rhino 7 for Windows](https://www.rhino3d.com/download/rhino-for-windows/7/latest) | ||
- [node.js and npm](https://nodejs.org/en/) (tested on node version 12.18.0 and npm 6.14.4) | ||
|
||
## Dependencies | ||
- [electron-edge.js](https://www.npmjs.com/package/electron-edge-js) - [version 12.16.3] Used to communicate between .net and node.js. | ||
- [rhino3dm.js](https://www.npmjs.com/package/rhino3dm) - [version 0.13.0] Used to decode data from .net | ||
- [three.js](https://threejs.org) - [version 123] Used to display the geometry coming from Rhino in the Electron app. | ||
- [Electron](https://www.electronjs.org/) - [version 5.0.13] Used to host the application, UI, and javascript. | ||
- .net [version 4.8] | ||
- [Rhino.Inside](https://www.nuget.org/packages/Rhino.Inside/) - [version 7.0.0] - Used to resolve Rhino related assemblies. | ||
- [RhinoTaskManager Library](../SampleRhinoInsideJavascriptTaskManagerLib) - .net library that opens up Rhino. | ||
|
||
## Usage | ||
1. This assumes you've installed node.js and Rhino 7, and have built the [RhinoTaskManager Library](../SampleRhinoInsideJavascriptTaskManagerLib). | ||
2. Clone this repository. Open a terminal to the cloned repository directory. | ||
3. Install dependencies: `npm i`. | ||
4. Start app: `npm run start`. | ||
5. An electron app will appear, then the GH Editor. Place some components onto the GH canvas to see them rendered in the Electron app. This might take some time depending on the number of plugins installed in Rhino and GH. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
rhino.inside/javascript/SampleRhinoInsideNodeApp/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Rhino.Inside Node.js | ||
Sample showing how to start Rhino from node.js | ||
|
||
## Requirements | ||
- [Rhino 7 for Windows](https://www.rhino3d.com/download/rhino-for-windows/7/latest) | ||
- [node.js and npm](https://nodejs.org/en/) (tested on node version 12.18.0 and npm 6.14.4) | ||
|
||
## Dependencies | ||
- [edge.js](https://www.npmjs.com/package/edge-js) - [version 14.3.2] Used to communicate between .net and node.js. | ||
- [rhino3dm.js](https://www.npmjs.com/package/rhino3dm) - [version 0.13.0] Used to decode data from .net | ||
- .net [version 4.8] | ||
- [Rhino.Inside](https://www.nuget.org/packages/Rhino.Inside/) - [version 7.0.0] - Used to resolve Rhino related assemblies. | ||
- [RhinoMethods Library](../SampleRhinoInsideJavascriptMethodsLib) - .net library that opens up Rhino. | ||
|
||
## Usage | ||
1. This assumes you've installed node.js and Rhino 7, and have built the RhinoMethods library. | ||
2. Clone this repository. Open a terminal to the cloned repository directory. | ||
3. Install dependencies: `npm i`. | ||
4. Start app: `npm run start`. | ||
5. You will see the following in the terminal: | ||
``` | ||
rhino3dm loaded. | ||
Rhino has started. | ||
Mesh has 92 vertices and 100 faces. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters