Fillet function fails to compute
I am having trouble getting the gmsh.model.occ.fillet
function to produce fillets for slightly more complicated shapes like splines. The fillet operation fails with error
Error : Could not compute fillet
I am not sure what is going on. Any ideas how to fix this?
Minimal Reproducible Example
import gmsh
pts = [
[-0.034085297850175826, -0.015879999846220016, 0.05610177678812691],
[-0.025773123244386263, -0.015879999846220016, 0.055737574716152566],
[-0.01861002668738365, -0.015879999846220016, 0.049875155091285706],
[-0.020155801627512814, -0.015879999846220016, 0.04756111125307992],
[-0.0267215470989998, -0.015879999846220016, 0.0538179986178875],
[-0.03388876537948993, -0.015879999846220016, 0.04823366301018323],
[-0.02941742481905319, -0.015879999846220016, 0.04031772333946176],
[-0.033975317841607816, -0.015879999846220016, 0.03933049213305148],
[-0.03777569460804871, -0.015879999846220016, 0.04833597241423769],
]
gmsh.initialize()
pt_ids = [gmsh.model.occ.addPoint(*pt) for pt in pts]
spline = gmsh.model.occ.addBSpline(pt_ids + [pt_ids[0]])
surface = gmsh.model.occ.addPlaneSurface([gmsh.model.occ.addCurveLoop([spline])])
extrs = gmsh.model.occ.extrude([(2, surface)], 0, 0.01, 0)
vol = [e[1] for e in extrs if e[0] == 3]
gmsh.model.occ.synchronize()
gmsh.fltk.run()
gmsh.model.occ.fillet(vol, [spline], [0.0001])
gmsh.finalize()