OpenSCad Rounded Cube

by agodinhost, published

OpenSCad Rounded Cube by agodinhost Jul 2, 2013




Liked By

View All

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

Thing Statistics

3196Views 1224Downloads


OpenSCad module to create cubes with ALL corners rounded.
Just change the normal cube call to
cubeX( size=10,radius=2,center=true );

This module uses the hull function and is quicker than the minkowski call.


cubeX( size=10,radius=2,center=true );
cubeX( [10,20,30] );

All Apps

Upgrade this Thing with Thingiverse Apps

No results.

Thanks! Gonna use this, and ill post a link to this on my Thing. :)

Thanks for a great library! Came in handy for designing small boxes to fit inside a larger drawer with rounded insides.

That was different. Learned three things. I like it when I find a simple script that I can learn from.

  1. Color with transparency.

  2. Didn't know you could drop the {}'s on a line with only one child process.

  3. The way you passed xyz to the cube without [ ]

...but why //TODO: discount r ?

That's why the final cube dimensions don't match exactly with the passed parameters (the hull call make some adjustments based on the 8 sphere points that I need to figure out how to calculate).

This is much closer than what the minkowski call does but it isn't perfect yet (I think that the minkowski adds the circle radius length to the final object).

thanks for the lines man!

Yes you are correct that the minkowski function adds the two objects together. However its much faster.
I've created a module that compensates for the addition https://www.thingiverse.com/thing:2684578

OpenSCAD Rounded Cube
by _stej_