Thingiverse
Rounded Cube Universal - OpenSCAD
by ivaklaszlo
18
Downloads
4
Likes
0
Makes
Universal rounded cube module. Any edge roundable with various radius.
call: rcube(x,y,z,radius_vector,center);
- x,y,z - normal cube parameters
- radius_vector : 12 edges = 12 parameter
- parameter
number of vector element = number of edge
r_vector[0,1,2,3] wiev edges from z+, ccw from origo
r_vector[4,5,6,7] wiev edges from y+, ccw from origo
r_vector[8,9,10,11] wiev edges from x+, ccw from origo
if (r_vector[e]==0) { no rounding }
if (r_vector[e] > 0) {convex radius edge}
if (r_vector[e] < 0) {chamfered edge}
Example:
r=[0,0,5,10, -7,0,2,0, 10,0,-10,6];
rcube(30,40,50,r);
I apologize to those who have downloaded so far!
A "*/" was missing from the end of the code. I replaced it.
call: rcube(x,y,z,radius_vector,center);
- x,y,z - normal cube parameters
- radius_vector : 12 edges = 12 parameter
- parameter
number of vector element = number of edge
r_vector[0,1,2,3] wiev edges from z+, ccw from origo
r_vector[4,5,6,7] wiev edges from y+, ccw from origo
r_vector[8,9,10,11] wiev edges from x+, ccw from origo
if (r_vector[e]==0) { no rounding }
if (r_vector[e] > 0) {convex radius edge}
if (r_vector[e] < 0) {chamfered edge}
Example:
r=[0,0,5,10, -7,0,2,0, 10,0,-10,6];
rcube(30,40,50,r);
I apologize to those who have downloaded so far!
A "*/" was missing from the end of the code. I replaced it.
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!