OpenSCAD Wedge Module/Library
7
Likes
102
Downloads
524
Views
Published on January 4, 2013
Description
I needed a wedge shape in openSCAD. There is no native functionality for a wedge, and I was surprised to see that none existed as a module. I figured I'd release what I came up with.
It's really simple and thrown together and I welcome more functional or feature-rich derivatives or patches that improve upon this.
UPDATE: I updated the file, commenting out the module call at the bottom. I hadn't actually included this in a project yet and hadn't remembered that was still turned on. Now it works properly as a module without having to modify the file.
It's really simple and thrown together and I welcome more functional or feature-rich derivatives or patches that improve upon this.
UPDATE: I updated the file, commenting out the module call at the bottom. I hadn't actually included this in a project yet and hadn't remembered that was still turned on. Now it works properly as a module without having to modify the file.
Instructions
Include in your scad file and call:
wedge(height, radius, degrees);
wedge(height, radius, degrees);
License
OpenSCAD Wedge Module/Library by AlexEnglish is licensed under the Attribution - Share Alike - Creative Commons license.

i think you need to oversize the wedge when d is > 180 so it is fully removed e.g:
translate([0,0,-1]) wedge_180(h+2,r+2,360-a);
You're absolutely right, I don't know how I missed that. Thanks for catching that, the code has been updated.