Developing a custom curve object

I am planning to work on a custom curve object that is composed of only lines and arcs. I would like to develop something that allows for easy modification of this kind of curve, for example, moving a line will adjust the arcs so that everything is always tangent. Effectively this is a polyline with dynamic fillets at the corners, with adjustable radiuses. I would need to develop custom grips to allow for adjustment of radiuses, move lines around, move corners around, etc.

I would appreciate any pointers or resources I should read before starting on this. I think I saw somewhere else that custom objects are a bit painful in RhinoCommon so I should look at C++ instead. Is this still the case?

Thank you.

check this collection of topics:

you will develop in c# / Rhinocommon or in the C++ API ?

kind regards - tom

I prefer RhinoCommon but happy to do it in C++ if its better suited. I would like to understand if things have improved in RhinoCommon for custom objects, or if the old advice still holds.

Hi @mmeng,

If all you want to to do is move grips, then all you need a a custom grip handler, not a custom curve object.

Have a look at this sample and let me know if you have any questions.

– Dale