Start here

unhandled

(Dan Belcher) #1

The purpose of this category is for testing and discussion of https://compute.rhino3d.com

Mode de l’emploi

  1. Visit https://compute.rhino3d.com and make sure the system is still up.
  2. Click the C# SDK link to download RhinoCompute.cs
  3. Add RhinoCompute.cs to your Rhino3dmIO project (no RhinoCommon).
  4. Set the Rhino.Compute.ComputeServer.ApiToken property to your email address.
  5. Call RhinoCommon methods like you normally would.

Samples

https://github.com/mcneel/compute.rhino3d.samples


(Steve Baer) #2

Ok, maybe I should add a few details…

It’s a Geometry Server

compute.rhino3d.com is a web server (or group of web servers) that provide an API for perfoming geometry calculations. The server is running Rhino in a non-user interface mode and makes a portion of the RhinoCommon .NET SDK available in a well defined pattern that matches the functions available in RhinoCommon.

It’s a client library

A big part of making compute.rhino3d.com useful is providing tools that can be used to call the server. Since the geometry server is using standard HTTP calls to communicate, any programming language could be used to work with the server.

The initial effort though is on a C# SDK which is available as a single C# source code file downloadable from the server. A developer should be able to do the following to get their application set up to use compute.rhino3d.com

  1. Reference Rhino 6 nuget package for Rhino3dmIO (for Windows, Mac, iOS, or Android)

  2. Reference JSON.Net nuget package

  3. Include the RhinoCompute.cs source file downloaded from compute.rhino3d.com in their project

  4. Set their API key (currently just enter your email address) by setting the Rhino.Compute.ComputeServer.ApiKey property

  5. Add using Rhino.Compute; at the top of a source file

  6. Done… Now all of the compute.rhino3d.com functions are availale as static functions in the Rhino.Compute namespace and as extension methods on existing Rhino3dmIO classes. It should just feel like you are using all of the classes that you are used to using in Rhino3dmIO with the addition of functionality that was only available in the past by working inside of Rhino and RhinoCommon.

We do plan to make other client libraries available in the future if people find that they need access from languages like python, javascript, go, VB.NET, C++…

It’s a Work in Progress

This is very much the wild west early days of compute.rhino3d.com. Please give it a try and help us figure out where it should go.


(Steve Baer) #3

@compute_rhino3d just pinging you to let you know about this private category you’ve been invited to. If this doesn’t interest you, please let me know. If it does interest you, please let me know.


(Dimitrie) #4

i’m game. :beers: for the invite! would drop everything and make the compute server crash right now!!! I’ll try and make time for non-.net implementations, in between speckle, thesis and life…


Calling compute with curl
(Steve Baer) #5

4 posts were split to a new topic: Calling compute with curl


#7

Excellent! Thank you for the invite!


(Jeroencoenders) #8

Thanks for the invite, @stevebaer. I am going to give it a try.


#9

Hey, thanks for the invite! Definitely interested. Will try to make some time for this.


#10

Glad to be here! We have some things that we’ll be testing with this for sure!


(Ben) #11

Hi Steve - Just heard about this and very interested in the possibilities. Would love to try it out.


(Ben) #12

Trying to implement the Split method from a BrepFace. I could normally use the method on a BrepFace to split using a list of curves. How would I implement this from Compute.Rhino3d as I can’t call the API as a method from the face?

https://compute.rhino3d.com/Rhino/Geometry/BrepFace/Split


(Ben) #13

and perhaps also an example of using this

https://compute.rhino3d.com/Rhino/Geometry/Curve/Offset