I have exactly the same case as Moose example by @dale regarding polyline marshalling.
However on C++ side I am not using Rhino, just standalone C++ code.
I represent polylines collection like this: std::vector<std::vector< Point >> where Point is a struct.
In the moose example, the arrays of polylines are represented using ON_SimpleArray and ON_Polyline. What kind of native C datastructures I should use to mimic the same behavior? Can I do the same interop with C arrays e.g. Point[a][b] ?
To be honest I find hard time finding any example how to marsh arrays and jagged arrays without Rhino C++ SDK, just using C++ alone. Does anyone know how to interop jagged arrays using PInvoke with as minimal data copying as possible?