ghpython
ghpython copied to clipboard
Datatypes in Grasshopper
How would I create these datatypes in GhPython to output as the native Grasshopper datatypes?
- Box - should we marshall an rs.Addbox result into a Box type?
- Rectangle - should we marshall a rs.AddPlanesurface?
These are most likely just the Box and Rectangle3d classes in RhinoCommon.
The AddRectangle call works also well because Grasshopper is able to convert a 4-pointed polyline in a rectangle if that is necessary, but the information is not retained for boxes. It seems a special case is necessary for Box.