i’m working on a plugin for Rhino/Grasshopper with extensive use of UserData and discovered, that Rhino.Geometry.Plane class is not inheriting GeometryBase, so it doesn’t inherit the UserData or UserDictionary properties.
Is there a chance, that this could be added to RhinoCommon in the future?
If not, i’ll try some workaround, with a generic database object, which holds data + id of the desired planes.
At runtime i can refer to the data for that plane in db with the plane id.
My question here would be, how to obtain some kind of id? The GetHashCode() method will not work, since it changes every time the plane coordinates change.
Since rhinocommon is wrapping unmanaged code, may there be a pinned memory location for any plane object?
Could i use a memory pointer to track the plane object.
It’s not necessary, that data is stored when rhino closes. Since it will be a grasshopper plugin, the db will be generated each time that plane object has been created in memory. Its ID must be consistent only at runtime.
I hope this description explains the concept. Don’t hesitate to ask any questions, if it’s not clear.