Rhino.Inside C++?

Is there a method currently to embed Rhino inside Cpp application?

Thanks in advance.

As long as you can spin up some .NET environment. There is Rhino Inside Python, where Python is CPython…

What does that mean?

This is technically possible, but probably not very feasible as of today. What C++ application are you trying to run Rhino.Inside of?

What is the problem?

Any.

Resources, documentation, technical expertise, and priorities. I’ve already written a C++ sample which embeds Rhino.Inside of Illustrator which is a C++ SDK. This is by no means easy and I don’t have the bandwidth to be able to support this. My current focus is on getting .NET based architectures to work with Rhino.Inside.

1 Like

Thanks Steve,

I’ll take a look into the example.

Could you (or someone else) please just add a readme file to that repo explaining what’s what?

Thanks in advance.

There already is a readme at the root of the repo. Feel free to submit a PR if you want to make any tweaks

What I meant was explaining what the source files do without having to open and read through them. Like in the given example the folder “Library” is the actual RhinoPlugin and the “Plugin” folder is the connection between Ilustrator SDK and RhinoCommon. (I haven’t read through them yet so just guessing)

Thanks anyways. I’ll do my best to understand and implement something.

hi @stevebaer
For architects in MAD or ZHA, there is surely a need for rhinoinside c++ in houdini and maya.

In my perspective, rhinoinside is an exciting function to integrate powerful nurbs tools to other software we most use.
And I knew there was already a cpython ver. but cpython has a much lower speed than c++. And for artists, it is important to see the result in real time(houdini has inlinecpp to use c++ in interface).

So Will mcneel provide a general c++ rhinoinside api to access rhinocommon?

For others who come across this thread and don’t require c++ level integration with Houdini, Rhino.Inside works perfectly in Houdini’s python host. I haven’t tested Maya but I don’t see any reason why it wouldn’t work the same.
-Matt

1 Like

I don’t see why not. I’m not opposed to providing more ways to run Rhino.Inside. If you want access to RhinoCommon, you can probably do this today using C++/CLI

I have test c++/cli with r7 edu openning. Code is following.

#using “C:/Program Files/Rhino 7/System/RhinoCommon.dll”
using namespace Rhino::Geometry;
int main()
{
Point3d pt0(1.0, 3.0, 2.0);
return 0;
}

And compiling is failed with no error message.
The cli platform is .net framework 4.6.1, vc142, vs2019.
what is wrong with it?