Fixed inverted faces for rcylinder().

This commit is contained in:
Revar Desmera 2018-11-19 15:13:15 -08:00
parent a19e30db73
commit 1db271b9ac

View file

@ -231,13 +231,13 @@ module rcylinder(h=1, r=1, d=undef, fillet=0.25, center=false)
up(center? 0 : h/2) {
rotate_extrude(angle=360, convexity=2) {
hull() {
left(d/2-fillet) {
right(d/2-fillet) {
yspread(h-2*fillet) {
circle(r=fillet, $fn=quantup(segs(fillet), 4));
}
}
left(d/2/2) square(size=[d/2, h-fillet*2], center=true);
left((d/2-fillet)/2) square(size=[d/2-fillet, h], center=true);
right(d/2/2) square(size=[d/2, h-fillet*2], center=true);
right((d/2-fillet)/2) square(size=[d/2-fillet, h], center=true);
}
}
}