mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Improvements for bosl1compat.scad
This commit is contained in:
parent
dff1fc10da
commit
c859cd67bc
@ -37,15 +37,15 @@ module chamfcube(size=[1,1,1],chamfer=0.25,chamfaxes=[1,1,1],chamfcorners=false)
|
||||
);
|
||||
}
|
||||
|
||||
module trapezoid(size1=[1,1], size2=[1,1], h=1, center=false)
|
||||
prismoid(size1=size1, size2=size2, h=h, anchor=center?CENTER:BOT);
|
||||
module trapezoid(size1=[1,1], size2=[1,1], h=1, shift=[0,0], align=CTR, orient=0, center)
|
||||
prismoid(size1=size1, size2=size2, h=h, shift=shift, spin=orient, anchor=center==undef? -align : center?CENTER:BOT);
|
||||
|
||||
module pyramid(n=4, h=1, l=1, r, d, circum=false) {
|
||||
radius = get_radius(r=r, d=d, dflt=l/2/sin(180/n));
|
||||
cyl(r1=radius, r2=0, l=h, circum=circum, $fn=n, realign=true, anchor=BOT);
|
||||
}
|
||||
|
||||
module prism(n=3, h=1, l=1, r=undef, d=undef, circum=false, center=false) {
|
||||
module prism(n=3, h=1, l=1, r, d, circum=false, center=false) {
|
||||
radius = get_radius(r=r, d=d, dflt=l/2/sin(180/n));
|
||||
cyl(r=radius, l=h, circum=circum, $fn=n, realign=true, anchor=center?CENTER:BOT);
|
||||
}
|
||||
@ -60,7 +60,7 @@ module chamf_cyl(h=1, r, d, chamfer=0.25, chamfedge, angle=45, center=false, top
|
||||
cyl(h=h, r=r, d=d, chamfer1=(bottom?chamf:0), chamfer2=(top?chamf:0), chamfang=angle, anchor=center?CENTER:BOT);
|
||||
}
|
||||
|
||||
module filleted_cylinder(h=1, r=undef, d=undef, r1, r2, d1, d2, fillet=0.25, center=false)
|
||||
module filleted_cylinder(h=1, r, d, r1, r2, d1, d2, fillet=0.25, center=false)
|
||||
cyl(l=h, r=r, d=d, r1=r1, r2=r2, d1=d1, d2=d2, rounding=fillet, anchor=center?CENTER:BOT);
|
||||
|
||||
module rcylinder(h=1, r=1, r1, r2, d, d1, d2, fillet=0.25, center=false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user