Fixed the API of box and roundedBox

This commit is contained in:
Elmom 2011-01-08 13:32:58 +02:00
parent 25b184e252
commit 50e821e4a3

View file

@ -28,12 +28,13 @@
//---------------------- //----------------------
// size is a vector [w, h, d] // size is a vector [w, h, d]
module box(size) { module box(width, height, depth,) {
cube(size, true); cube([width, height, depth,], true);
} }
// size is a vector [w, h, d] // size is a vector [w, h, d]
module roundedBox(size, radius) { module roundedBox(width, height, depth, radius) {
size=[width, height, depth,]
cube(size - [2*radius,0,0], true); cube(size - [2*radius,0,0], true);
cube(size - [0,2*radius,0], true); cube(size - [0,2*radius,0], true);
for (x = [radius-size[0]/2, -radius+size[0]/2], for (x = [radius-size[0]/2, -radius+size[0]/2],