Do we have following actions in Rhino.Compute

We are also checking if Rhino Compute’s library contains methods that can do the following actions:

  • Untrim a surface
  • Test whether a point is inside a closed brep (solid)
  • Create a cut plane (a surface larger than a given shape)
  • Project objects to a plane or surface
  • Find a surface’s normal vector (perpendicular vector) or plane

If you have a running instance of rhino.compute, then you can hit the /sdk endpoint to see all of the methods that are available. For instance, if you’ve got a local instance of compute running on port 6500, then you might type http://localhost:6500/sdk in your browser and the response will show you all of the available methods.

You can also call those methods directly. For example, let’s say you wanted to create a new circle whose center point was at [1.0, 2.0, 3.0] and had a radius of 12.0. You would send a POST request to http://localhost:6500/rhino/geometry/circle/new and the body of your message would include the parameters like this: [{“X”:1.0,“Y”:2.0,“Z”:3.0}, 12]. The response would then be:

1 Like