Offset Brep Python

I’m offsetting a brep. The script worked fine until I used a semi complicated shape. I can not figure out what I’m missing. Could someone help and take a look? Some faces do the offset some don’t. I just can’t find the Explanation

import rhinoscriptsyntax as rs
import Rhino as r

a=[]

for x in breps:
   os = r.Geometry.Brep.CreateOffsetBrep(x,d,closed,True,0.01)
   print os[0]
   a.append(os[0][0])

thanks in advance


OffsetBrep.gh (8.4 KB)

Just in case it helps anyone else - “Closed” needs to be a boolean True or False.