I’m using RhinoCommon. I’m trying to get nurbs surface geometry from an object a user selects with the below code. I’m adding the nurbs surface back to the document to test that it works. The nurbs surface does not get added, any idea why?
Dim go As New Rhino.Input.Custom.GetObject()
go.DeselectAllBeforePostSelect = False
go.SubObjectSelect = False
go.GroupSelect = True
go.GeometryFilter = Rhino.DocObjects.ObjectType.Surface
Dim NurbsSurface = TryCast(go.Object(0).Object.Geometry, Rhino.Geometry.NurbsSurface)
Also, is there a simpler way to do this?
A second question, somewhat related:
I’m creating a nurbs surface with the following function:
The input is a one dimensional list of control points, but control points occur in both the U and V directions on the surface. Whats going on here?