rotate_extrude through angle September 24, 2014 10:32AM |
Registered: 10 years ago Posts: 376 |
difference() { rotate_extrude(convexity = 10, $fn = 100) translate([5, 0, 0]) circle(r = 2, $fn = 10); difference() { translate([-10,-10,-4])cube([25,25,8]); translate([0, 0,-4])cube([10,10,10]); } }
Re: rotate_extrude through angle September 24, 2014 10:46AM |
Registered: 10 years ago Posts: 2,472 |
Re: rotate_extrude through angle September 24, 2014 11:26AM |
Registered: 10 years ago Posts: 376 |
Re: rotate_extrude through angle September 24, 2014 12:39PM |
Registered: 10 years ago Posts: 2,472 |
Re: rotate_extrude through angle September 24, 2014 04:09PM |
Registered: 10 years ago Posts: 376 |
Quote
dmould
Sorry, my mistake. No, it seems that rotate_extrude always operates through 360 degrees, though it is a simple matter to cut out the angular section you don't want with one or two cubes as in your example. If you need to do it often in a design you could trivially make a module that takes an angle as one of its arguments to do the cutting (or the entire partial extrude). That's what's great about OpenScad - if it doesn't have a command that does what you need, you effectively create the command you want via a module.
Dave