@@ -37,15 +37,15 @@ module chamfcube(size=[1,1,1],chamfer=0.25,chamfaxes=[1,1,1],chamfcorners=false)
37
37
);
38
38
}
39
39
40
- module trapezoid(size1=[1,1], size2=[1,1], h=1, center=false )
41
- prismoid(size1= size1, size2= size2, h= h, anchor= center?CENTER:BOT);
40
+ module trapezoid(size1=[1,1], size2=[1,1], h=1, shift=[0,0], align=CTR, orient=0, center )
41
+ prismoid(size1= size1, size2= size2, h= h, shift = shift, spin = orient, anchor= center == undef? - align : center?CENTER:BOT);
42
42
43
43
module pyramid(n=4, h=1, l=1, r, d, circum=false) {
44
44
radius = get_radius(r= r, d= d, dflt= l/2 /sin (180 /n));
45
45
cyl(r1= radius, r2= 0 , l= h, circum= circum, $ fn= n, realign= true , anchor= BOT);
46
46
}
47
47
48
- module prism(n=3, h=1, l=1, r=undef , d=undef , circum=false, center=false) {
48
+ module prism(n=3, h=1, l=1, r, d, circum=false, center=false) {
49
49
radius = get_radius(r= r, d= d, dflt= l/2 /sin (180 /n));
50
50
cyl(r= radius, l= h, circum= circum, $ fn= n, realign= true , anchor= center?CENTER:BOT);
51
51
}
@@ -60,7 +60,7 @@ module chamf_cyl(h=1, r, d, chamfer=0.25, chamfedge, angle=45, center=false, top
60
60
cyl(h= h, r= r, d= d, chamfer1= (bottom?chamf:0 ), chamfer2= (top?chamf:0 ), chamfang= angle, anchor= center?CENTER:BOT);
61
61
}
62
62
63
- module filleted_cylinder(h=1, r=undef , d=undef , r1, r2, d1, d2, fillet=0.25, center=false)
63
+ module filleted_cylinder(h=1, r, d, r1, r2, d1, d2, fillet=0.25, center=false)
64
64
cyl(l= h, r= r, d= d, r1= r1, r2= r2, d1= d1, d2= d2, rounding= fillet, anchor= center?CENTER:BOT);
65
65
66
66
module rcylinder(h=1, r=1, r1, r2, d, d1, d2, fillet=0.25, center=false)
0 commit comments