Surface from closed planar curve? (rhinocommon)

hey guys,
i am searching for a way to get a trimmed surface from a closed planar polycurve (in my case a polygon, only straight edges). is there a dedicated method or will i have to tinker with breps? if so, what’s the easiest way to achieve that?

best, heinz.

Probably the best way is to:

  • Extrude the closed planar polycurve
  • myBrep.Split(extrudedbrep, doc.absolutetollerance)
  • filter the resulted breps.

thanks, jordy! this solution might be a bit expensive, though…

Hi Heinz,

Use Rhino.Geometry.Brep.CreatePlanarBreps.

thanks a lot, dale! works now. all the best from vienna! :wink: