Loading

OpenSCad Rounded Cube

by agodinhost, published

OpenSCad Rounded Cube by agodinhost Jul 2, 2013

Contents

Tags

License

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

2970Views 1102Downloads

Summary

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.

Instructions

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

All Apps

Upgrade this Thing with Thingiverse Apps


No results.

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!

Top