Opennurbs and cmake

Hi,

Is there any update regarding OpenNurbs and CMake?

I saw pull request for this:

Is there any way to use it as library in a cmake project on Visual Studio Code not Visual Studio?


I would like to avoid in all possible ways step 2:

  • Clone this repository.
  • Open opennurbs_public.sln, select the platform and configuration, and rebuild all.
  • Create your C++ project that will use opennurbs.
  • In your project’s stdafx.h, put the following lines:

CMake support has existed since begin 2023.

1 Like

Thank you.

For python binding in Rhino3dm do you know what was used?
Was is pybind11, nanobind or something else @stevebaer @fraguada ?

Currently pybind11, but I think @fraguada was working on moving to nanobind

1 Like

Supercool!

I guess there is no documentation for python rhino3dm?

I guess this is the doc: Point3d — rhino3dm 8.6.0-beta1 documentation

How you would use rhino3dm inside rhino (i know it is not the reason it was created for), you would still need to convert python types to rhinocommon ones?

Why would you want to use rhino3dm in Rhino, I see no benefit. Indeed RhinoCommon is the API to use.

1 Like

Don’t do this. The python bindings are built against public opennurbs and not the one that ships with Rhino. It will lead to eventual problems due to slight differences in the libraries.

We hope to some day build direct python bindings against the classes in Rhino, but that does not exist.

2 Likes