I’m looking for a way to create a custom object that could be used to store meta-information about the model (specifically a Plane and Vector2d), display this information as some geometry object that is derived from this (in this case some kind of a plane origin indicator curves and a rectangle) and keep these two connected that one would be created/moved/selected/deleted etc together the other.
I tried to make some approximation of what it should look like with black representing the geometry that is visible to the user and red representing the underlying data.
I guess I could store this data outside of the object table as just user data in the document and make it visible by display conduits with some commands, but it would make it much easier to handle this data it if these were represented as objects in the model space and I could manipulate these objects to manipulate the meta-information.
It seems that it should be something that is possible with the Rhino.Geometry.Custom classes, but I can’t find samples about this.
So there’s probably two separate questions in here:
- Is there a way to create a custom Rhino object that would internally contain two geometry objects and represent them in some other form in the document?
- How to make this element modifiable in the model space? Would it be possible to use custom grips for this?