mcneel / rhino3dm

Libraries based on OpenNURBS with a RhinoCommon style
MIT License
582 stars 135 forks source link

Example request. BREP boolean example for JS/wasm #435

Closed mmiscool closed 2 years ago

mmiscool commented 2 years ago

Hello, I was hoping that there might be an example for creating 2 primitive objects like a cube and a sphere, performing a boolean operation using the two objects and visualizing the output.

jesterKing commented 2 years ago

The rhino3dm library has no geometry operation functionality. This library is primarily intended for reading and writing the Rhinoceros 3D file format.

If you need the Rhino geometry kernel functionality you should consider setting up Rhino.Compute to use in conjunction with your service.

sbaer commented 2 years ago

We do have samples for performing this type of operation in the browser using Rhino.Compute as a backend service https://github.com/mcneel/rhino-developer-samples/tree/7/compute/js/SampleBrepBoolean