I am trying to use RhinoCommon to offset my brep using the Brep.CreateOffsetBrep in python. I get an output of Rhino.Geometry.Brep but I cannot use it in my grasshopper document. I need to use RhinoCommon because there is no offsetBrep command in rhinoscriptsyntax (only offsetSrf which will not work). So how do I convert the Goo to Brep?OffsetProblem.gh (308.4 KB)
import rhinoscriptsyntax as rs import scriptcontext as sc import Rhino from Grasshopper.Kernel import * import Grasshopper surface = rs.coercebrep(x) a = Rhino.Geometry.Brep.CreateOffsetBrep(surface,y,1,0,0) b =  for item in a: z = Grasshopper.Kernel.Types.GH_Brep() GH_Convert.ToGHBrep(item,GH_Conversion.Both,z) b.append(z)
the problem is that a is an empty brep meaning your createoffsetbrep failed.