openscad-fillets icon indicating copy to clipboard operation
openscad-fillets copied to clipboard

Issue with bottomFillet()?

Open threed-factory-store opened this issue 2 years ago • 0 comments

If I run the 3D Example, everything looks great.

But if I change this call: topBottomFillet(b = 0, t = 10, r = 2, s = 20) to: bottomFillet(b = 0, r = 2, s = 20),

...then it doesn't look right at all. There are no fillets, but there are strange artifacts on the inside of the model.

On my SolidPython model, I can see that the fillet is being drawn but it isn't being subtracted from the main model.

Edit: If I change this call: topBottomFillet(b = 0, t = 10, r = 2, s = 20) to: topBottomFillet(b = 0, t = 100, r = 2, s = 20) ...then I get the bottom fillet I was expecting.

Hah! Found it! The issue with my model was that the bottom was at a negative Z offset. So I moved it up to zero, called bottomFillet(), and moved it back where I had it.

I also found the issue with bottomFillet(): it calls: translate([0, 0, b - r - 1]) where topBottomFillet() calls: translate([0, 0, b - 1]) in the same place. So I modified bottomFillet() to match topBottomFillet(), and now it works with the move-to-zero-and-back hack.

threed-factory-store avatar Jul 08 '22 21:07 threed-factory-store