Transfer C# object to C++ code


Could you give an example how to pass an object like a NurbsCurve from C# to C++.
I underdtand it should somewhere use the NonConstPointer but how?

(Dale Fugier) #2

In RhinoCommon, a NurbsCurve holds on to an private IntPtr which a points to a ON_NurbsCurve objects. NonConstPointer returns this IntPtr value.

Does this help?

– Dale

(Steve Baer) #3

The functions for accessing these pointers are in the Rhino.Runtime.Interop class in RhinoCommon