Hi,
I am trying to offset a brep / polysurface in gh using Python. I am referencing a bunch of curves into gh to manipulate, joining & extruding them up, and trying to create a brep from that by offsetting the extruded polysrf but when I use Offset Surface in gh (both the native & Pufferfish one), the polysurface created is not a single solid brep. However, when I manually offset that extruded polysrf in Rhino, the brep created is a single closed brep.
My current issue with the Rhino Common command is that CreateOffsetBrep requires a brep input, and when I input the brep component in gh, I am getting an error that says it is a GUID & not a brep. Is there a way to convert this info? Or perhaps a more elegant way to resolve this problem? The command I am running is:
a = Rhino.Geometry.Brep.CreateOffsetBrep(brep, dist, solid, ext, shr)
I have also included the Rhino & gh file to hopefully explain what I’m trying to achieve, and the attempts in gh I have tried - Pufferfish (not creating a single closed brep), scriptsyntax (which is a srf input only, so doesn’t inherently work I think?), and Rhino Common (which is giving a GUID error).
Thank you in advance for any feedback / suggestions / solutions!
220628_eg_offset-problem.gh (13.4 KB)
220628_eg_offset-problem.3dm (793.2 KB)
3 posts - 3 participants