[RhinoCommon] Grip-editing of CustomMeshObject turns it into a normal mesh


(Menno Deij - van Rijswijk) #1

When I have a custom mesh object and the user turns on control points and starts editing them, the custom mesh object turns into a normal mesh object.

How can I prevent this from happening? Is this supposed to happen? I don’t mind the user editing the custom mesh object - I do mind that it turns into a normal mesh on editing.


(Dale Fugier) #2

Hi Menno,

Without providing your own grip handling, this is going to happen. Because of stuff your object does not provide, Rhino just defaults to what the base class provides. The big question is whether or not it’s possible for a RhinoCommon plug-in to provide function functionality (yet). I’ve got more test to do…

– Dale


(Menno Deij - van Rijswijk) #3

As far as I can see, there is not enough implemented in RhinoCommon to provide custom grip handling. I have not seen any examples, nor any useful documentation in the online SDK docs that show how to do this.


(Dale Fugier) #4

I believe there is. Let me work up a sample…


(Menno Deij - van Rijswijk) #5

That would be awesome! Looking forward to it, because I was already considering doing this in C++. If that would not be necessary that would save me a lot of work, esp. getting to know the Rhino C++ SDK and brushing up my rusty C++ skills :smile:


RhinoCommon Custom Objects
(Dale Fugier) #6

I have not gotten your the RhinoCommon sample (yet). But here is a C++ sample that demonstrates how to create a curve with custom grips. Meshes would be similar.

https://github.com/mcneel/Rhino5Samples_CPP/tree/master/SampleCustomGrips


(Menno Deij - van Rijswijk) #7

Is this currently possible using the functionality in SR9? I would very much like to implement custom grips (not only for Mesh but also for Surface) in RhinoCommon if possible.