When making a cylinder, sometimes I need to only take a pie slice. I'm currently using this neat trick to make pie slices for angles under 90 degrees. However, I have need of a few angles over 90 but under 180 degrees. Is there a way to generalize/extend this to work for these bigger angles?
module pie_slice(r=3.0,a=30) {
intersection() {
circle(r=r);
square(r);
rotate(a-90) square(r);
}
}
pie_slice(r=10,a=15);
difference. Circle minus two cubes with sides 2R. (Or one of size 2R and one of size R.) – Tomas By Jul 20 '19 at 22:19unioninstead ofintersection. Unfortunately, you have to examine how many degrees the caller wants and use one or the other - I have yet to find a universal method – Hamy Jul 20 '19 at 22:33