Hi,
I am trying to draw a box using VB in Grasshopper. I successfully get a RMA.OpenNurbs.OnBox. However, this doesn't get displayed in the RHINO viewport. Any ideas how to get the boxes to display?
Vicente,
I'm starting to see that in VB, you can mix native grasshopper components and native Rhino parts. Is there documentation to know which native grasshopper components are accessible from VB?
For example, this EH_Box feature is available and works but I don't see the equivalent for "Cylinders". We had to resort to native Rhino ONCylinder to draw it.
I guess the bigger question would be how do we know when to use OpenNurbs objects (referencing the .Net SDK), Grasshopper objects (Grasshopper.Kernel.Types) or OnUtil. geometry objects?
Hi,
Grasshopper types still not documented properly for efficient use. This will be coming at some point. In general I'd use GH types when they are not available in OpenNURBS (for example the data tree). GH does the casting internally for ON types.
OpenNURBS has all geometry classes/types. You can use them to create geometry of that type, but you need to know which method to use to set the member variables properly. In more comlex geometry, like a box, edge surface, etc, there are functions in the SDK that does it for you. These functions are under one of 2 name spaces. RhUtil and OnUtil. It takes a bit of digging and asking around to see which is most appropriate in each case.