Making a cube in OpenScad takes just one line of code. Making it nicer (with rounded corners) takes... 40 lines of code!
But hey, the good thing about OpenScad is that once someone makes a library, everything becomes trivial.
So now, making tidy iPhonesque shapes requires just a line of code:
You have several options to use this library:
a) Open the .scad file, copy its content and paste it in your script
b) Include the file in your script with any of these commands:
For this option, the library file should be in the same folder as your script.
c) Download the file and copy it in /usr/local/share/openscad/libraries (at least for Ubuntu) Then add it using:
Preview of the code: http://codeviewer.org/view/code:1b36