Script for Rounded Corners for OpenSCAD by WarrantyVoider
Long ago, before “Web 2.0” and the Dot Com crash, the world wide web was kinda ugly. Most pages were built in HTML using tables, which necessarily meant everything was blocky and boxy looking. 1 Sure, they were functional, but they weren’t exactly pretty. After a time new scripts in javascript and cascading stylesheet techniques came into use that allowed web developers to round the corners off square boxes. Eventually these complicated scripts and piles of nested CSS gave way to more simple and elegant ways to create rounded corners.
That’s what it feels like today, with the release of the OpenSCAD library for rounded corners by WarrantyVoider. WarrantyVoider has made making a box with rounded corners almost as easy as making a regular box. Remember this little tidbit from a certain blogger:
- cube([4,8,16]);
Well, making a rounded cube using this library is as easy as:
- include <roundCornersCube.scad>
- roundCornersCube(4,8,16,1);
I think WarrantyVoider has actually gone a long way to helping people make better looking objects that use less plastic. What’s not to like?!
- Kinda like a Volvo. [↩]
| Tagged with | box rounded corners, openscad, openscad tutorial, round box, rounded corners, warrantyvoider | 2 comments |



2 Comments so far
Mike Thomson
As noted in the comments on the Thing, this is a rewrite of a now-standard OpenSCAD function:
Lenbok
In my openscad libraries directory there is boxes.scad, which includes roundedBox(size, radius, sidesonly). I’m pretty sure it’s in the standard openscad distribution. It it different from what you are doing?
WarrantyVoider
Emmm, you couldn’t be more right!
It seems that I’ve rewritten one of the few standard functions in OpenScad. This is a newbie (what I am) error: not looking well if something was done previously!
And yes, the standard function is better: you can choose to round the object in 3D (the corners appear as spheres).
randyy
Ditto. In addition to the Elmom MCAD repository, roundedRect is one of the many library functions I included in http://www.thingiverse.com/thing:6021 which is a parts library of a number of shapes and miscellaneous functions I use for parts production. While I applaud his desire to share with the community, this isn’t exactly new.