Closed sonichy closed 7 months ago
include <BOSL2/std.scad>
include <BOSL2/rounding.scad>
path = round_corners(trapezoid(w1=50, w2=70, h=50), r=10, closed=true);
polygon(path);
Actually, I forgot that trapezoid already has rounding available.
include <BOSL2/std.scad>
trapezoid(w1=50, w2=70, h=50, rounding=10);
And if you need to specify a different rounding per corner, you can give the rounding= a list of four radii, for quadrants I, II, III, and IV, in order. (X+Y+, X-Y+, X-Y-, X+,Y-, respectively.)
include <BOSL2/std.scad>
trapezoid(w1=50, w2=70, h=50, rounding=[5, 10, 15, 20]);