diff --git a/grasshopper/README.md b/grasshopper/README.md index 757c6bed82912cd2d66aa6b7085f29efa7df354c..988de5e1788badc9f56492e8b54d40aa719cd15a 100644 --- a/grasshopper/README.md +++ b/grasshopper/README.md @@ -25,21 +25,46 @@ Since 2018, there has been a Python library called [rhino3dm](https://www.rhino3 It also lets you construct geometry, but you're somewhat limited in which operations you can use. Closest point calculations, intersections, and tessallations, [for example](https://developer.rhino3d.com/guides/compute/features/) are off the table. -But new in Rhino 7 is something called [Rhino.Inside](https://www.rhino3d.com/features/rhino-inside/). Rhino.Inside allows Rhino to be embedded in other applications as a geometry/CAD kernel. - - +But new in Rhino 7 is something called [Rhino.Inside](https://www.rhino3d.com/features/rhino-inside/). Rhino.Inside allows Rhino +to be embedded in other applications as a geometry/CAD kernel. One particulary interesting use of Rhino.Inside is +[Rhino Compute Server](https://github.com/mcneel/compute.rhino3d). This is a standalone (headless) server that exposes +a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API for basically all of Rhino. +The server itself is a .NET application, and it comes with a Python library that lets us interact with the server. +This is what we will be exploring here. ## Installing -Rhino installers can be downloaded from [here](https://www.rhino3d.com/download/). Note that it's +### Rhino/Grasshopper + +Rhino 7 installers can be downloaded from [here](https://www.rhino3d.com/download/). Note that it's not free software, so you have to have a license to use it. In the School of Architecture and Planning here at MIT, we're lucky to have a department-wide license. Otherwise, McNeel -offers free 90 day trials if you give them your email addresss. +offers free 90 day trials if you give them your email addresss. Rhino 7 includes Grasshopper. + +### Rhino Compute Server + +To compile the server, you'll need to install [Visual Studio](https://visualstudio.microsoft.com/). +Instructions for this are [here](https://developer.rhino3d.com/guides/compute/development/). + +You also need to install the Python library, which you can do using pip. + +``` +python -m pip install compute_rhino3d +``` + +### Rhino3dm + +This one is just another pip call. + +``` +python -m pip install rhino3dm +``` +### CMA-ES -## +To run the optimization demo, you'll need a few extra Python libraries installed. ``` python -m pip install cma numpy matplotlib