diff --git a/shapes.scad b/shapes.scad index cb4c6a6..dfd3af1 100644 --- a/shapes.scad +++ b/shapes.scad @@ -28,12 +28,13 @@ //---------------------- // size is a vector [w, h, d] -module box(size) { - cube(size, true); +module box(width, height, depth,) { + cube([width, height, depth,], true); } // 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 - [0,2*radius,0], true); for (x = [radius-size[0]/2, -radius+size[0]/2],