I have a RhinoScript that operates directly from Rhino itself.
I am taking a list of all surfaces in the project (or a selection thereof), and for each surface I want to access the geometry of the border curve (ie all edit points of all edges around that border).
My approach looked like this:
Loop through all Surface objects
Get the border through Rhino.DuplicateSurfaceBorder
Loop on individual edges through Rhino.ExtractPolyCurveSegment
Get the edit points through Rhino.CurveEditPoints
(those edit points are then extracted to an array, written to file to be used in another application).
This worked fine with RhinoScript (an rvb script).
However, when I try to replicate this in a Grasshopper VB.NET component, I get the following error:
"Error (BC30456): âDuplicateSurfaceMemberâ is not a member of âRhinoâ.
I spent a lot of time searching for hints in the online help, and apparently there seems to be something close to it using âBrepâ objects instead of Surfaces. However, I am not sure how that would work.
Any recommendation on how to get to those edges & edit points in the most direct way, just in order to export that data?
Indeed, I used Edit Points as the software I am exporting to requires points on the curve itself. The curves are not 100% matching due to different mathematical definitions, but itâs good enough for now.