Loading

OpenSCAD Wedge Module/Library

by AlexEnglish, published

OpenSCAD Wedge Module/Library by AlexEnglish Jan 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.

Recent Comments

view all

You're absolutely right, I don't know how I missed that. Thanks for catching that, the code has been updated.

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);

Thank you!

Liked By

view all

Tags

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

Instructions

Include in your scad file and call:

wedge(height, radius, degrees);

Comments

You must be logged in to post a comment.

kitwallace on Jan 12, 2013 said:

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);

AlexEnglish on Jan 13, 2013 said:

You're absolutely right, I don't know how I missed that. Thanks for catching that, the code has been updated.

Austin on Jan 4, 2013 said:

I like the cleanliness of how you handle angles greater than 180 degrees!

AlexEnglish on Jan 4, 2013 said:

Thank you!

Top