Creating a surface or brep from nurbs curve

Hi all,

I am trying to create surfaces or breps from curves but not sure how I do that.
I am creating a curve from a bunch of points and then turning it into a nurbs curve.

for coord in geometry["rings"][0]:
      point = rh.Point3d(coord[0], coord[1], 0)
      points.append(point)
  polyline = rh.Polyline(points)
  curve = polyline.ToNurbsCurve()
  model.Objects.AddCurve(curve)

Thanks

Hi @Rivindu_Bandara1,

If you were just using Rhino, how would you do this?

Thanks,

– Dale

Hi @dale,

In rhino I would use edgesrf, patch or an extrudecrv. In grasshopper I would use boundary surfaces but I havent found anything similar in the rhino3dm docs.

Thanks

rhino3dm is a subset of what is available in Rhino that we make available for reading, writing, and creating Rhino objects and data. Some advanced surface creation tools, meshing, booleans, etc are not available in rhino3dm. You could create a ruled surface from two curves:

https://mcneel.github.io/rhino3dm/python/api/NurbsSurface.html#rhino3dm.NurbsSurface.CreateRuledSurface

1 Like

Hi @fraguada,

This is useful, but a majority of the surfaces I am trying to generate are complex shapes with multiple curves. My current workflow includes rhino compute and a simple gh script which turns the curves into surfaces. Unfortunately this takes too long on certain tasks and was hoping there was a rhino3dm solution.

Thanks