Script for Rounded Corners for OpenSCAD by WarrantyVoider

Round corners for Openscad - Library by WarrantyVoider

Round corners for Openscad - Library 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:

  1. cube([4,8,16]);

Well, making a rounded cube using this library is as easy as:

  1. include <roundCornersCube.scad>
  2. 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?!

  1. Kinda like a Volvo. []
Tagged with , , , , , 2 comments
 

2 Comments so far

  • Mike Thomson
    May 27, 2011 at 2:59 am
     

    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
    May 28, 2011 at 1:33 pm
     

    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.

     
 

Leave your comment

 
 
 

xhtml: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>