This has been asked before, though a long time ago.
Network Surfaces in GH
I noticed that RhinoCommon (apparently) has 2 methods for it:
NurbsSurface.CreateNetworkSurface Method (IEnumerable(Curve), Int32, Double, Double, Double, Int32)
NurbsSurface.CreateNetworkSurface Method (IEnumerable(Curve), Int32, Int32, IEnumerable(Curve), Int32, Int32, Double, Double, Double, Int32)
But when I try to call the method, I get an error saying CreateNetworkSurface is not a member of NurbsSurface.
Did the author for the RhinoCommon documentation get carried away?
I mean, were these methods included in the online doc even though the method isn't actually exposed in the SDK yet?
Or is this just a GH limitation?
Jon Mirtschin
Hi Santiago,
I'll explain my understanding of this, I'm sure someone will correct me if I'm misinterpreting.
RhinoCommon is a new dotNET SDK primarily for Rhino v5. It's really a wrapper for the c++ sdk, and there's new functions for methods such as network surface or unrolling exposed in v5 that are not available in the v4 sdk.
David ships (and loads) with Grasshopper a v4 specific rhino common library which cannot offer the v5 new features. If you are compiling your own gh assemblies, you can reference the v5 rhino common assembly to access these methods, and it will work provided you are running rhino v5 (you should get a runtime error if you try in v4). I can't remember testing scripting components (I think I did), but I assume it is the same situation.
Hope this makes sense,
Jon
May 14, 2011